def get_nm_node_classes(nm_host):
    "\n    Return a dict of all node classes in NM,\n    with their id as the dict key.\n\n    :param nm_host: NodeMeister hostname/IP\n    :type nm_host: string\n    :rtype: dict\n    :returns: NM node classes, dict of the form:\n      {id<int>: {'classname': <string>, 'classparams': <string or None>, 'node': <int>, 'id': <int>}\n    "
    r = {}
    j = get_json(('http://%s/enc/classes/nodes/' % nm_host))
    for o in j:
        r[o['id']] = o
    return r
Return a dict of all node classes in NM,
with their id as the dict key.

:param nm_host: NodeMeister hostname/IP
:type nm_host: string
:rtype: dict
:returns: NM node classes, dict of the form:
  {id<int>: {'classname': <string>, 'classparams': <string or None>, 'node': <int>, 'id': <int>}
def get_nm_node_classes(nm_host):
    "\n    Return a dict of all node classes in NM,\n    with their id as the dict key.\n\n    :param nm_host: NodeMeister hostname/IP\n    :type nm_host: string\n    :rtype: dict\n    :returns: NM node classes, dict of the form:\n      {id<int>: {'classname': <string>, 'classparams': <string or None>, 'node': <int>, 'id': <int>}\n    "
    r = {}
    j = get_json(('http://%s/enc/classes/nodes/' % nm_host))
    for o in j:
        r[o['id']] = o
    return r