def add_group(nm_host, name, description, parents=None, groups=None, dry_run=False):
    '\n    add a group to NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param name: name of the new group\n    :type name: string\n    :param description: description of the new group\n    :type description: string\n    :param parents: parents of this group\n    :type parents: list of int IDs\n    :param groups: child groups of this group\n    :type groups: list of int IDs\n    :param dry_run: if True, only print what would be done, do not make any changes\n    :type dry_run: boolean\n    :returns: int ID of the new group on success or False on failure\n    :rtype: int or False\n    '
    payload = {'name': name, 'description': description}
    if (parents is not None):
        payload['parents'] = parents
    if (groups is not None):
        payload['groups'] = groups
    url = ('http://%s/enc/groups/' % nm_host)
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return get_nm_group_id(nm_host, name, dry_run=dry_run)
    logger.error(('ERROR: add_group got status code %d' % status_code))
    return False
add a group to NodeMeister

:param nm_host: NodeMeister hostname or IP
:type nm_host: string
:param name: name of the new group
:type name: string
:param description: description of the new group
:type description: string
:param parents: parents of this group
:type parents: list of int IDs
:param groups: child groups of this group
:type groups: list of int IDs
:param dry_run: if True, only print what would be done, do not make any changes
:type dry_run: boolean
:returns: int ID of the new group on success or False on failure
:rtype: int or False
def add_group(nm_host, name, description, parents=None, groups=None, dry_run=False):
    '\n    add a group to NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param name: name of the new group\n    :type name: string\n    :param description: description of the new group\n    :type description: string\n    :param parents: parents of this group\n    :type parents: list of int IDs\n    :param groups: child groups of this group\n    :type groups: list of int IDs\n    :param dry_run: if True, only print what would be done, do not make any changes\n    :type dry_run: boolean\n    :returns: int ID of the new group on success or False on failure\n    :rtype: int or False\n    '
    payload = {'name': name, 'description': description}
    if (parents is not None):
        payload['parents'] = parents
    if (groups is not None):
        payload['groups'] = groups
    url = ('http://%s/enc/groups/' % nm_host)
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return get_nm_group_id(nm_host, name, dry_run=dry_run)
    logger.error(('ERROR: add_group got status code %d' % status_code))
    return False