def add_class_to_group(nm_host, gid, classname, classparams=None, dry_run=False):
    '\n    add a class to a group in NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param gid: numeric ID of the group to add param to\n    :type gid: int\n    :param classname: class name\n    :type classname: string\n    :param classparams: class parameters, default None\n    :type classparams: string or None\n    :param dry_run: if True, only print what would be done, do not make any changes\n    :type dry_run: boolean\n    :returns: True on success or False on failure\n    :rtype: boolean\n    '
    payload = {'group': gid, 'classname': classname, 'classparams': classparams}
    url = ('http://%s/enc/classes/groups/' % nm_host)
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return True
    logger.error(('ERROR: add_class_to_group got status code %d' % status_code))
    return False
add a class to a group in NodeMeister

:param nm_host: NodeMeister hostname or IP
:type nm_host: string
:param gid: numeric ID of the group to add param to
:type gid: int
:param classname: class name
:type classname: string
:param classparams: class parameters, default None
:type classparams: string or None
:param dry_run: if True, only print what would be done, do not make any changes
:type dry_run: boolean
:returns: True on success or False on failure
:rtype: boolean
def add_class_to_group(nm_host, gid, classname, classparams=None, dry_run=False):
    '\n    add a class to a group in NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param gid: numeric ID of the group to add param to\n    :type gid: int\n    :param classname: class name\n    :type classname: string\n    :param classparams: class parameters, default None\n    :type classparams: string or None\n    :param dry_run: if True, only print what would be done, do not make any changes\n    :type dry_run: boolean\n    :returns: True on success or False on failure\n    :rtype: boolean\n    '
    payload = {'group': gid, 'classname': classname, 'classparams': classparams}
    url = ('http://%s/enc/classes/groups/' % nm_host)
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return True
    logger.error(('ERROR: add_class_to_group got status code %d' % status_code))
    return False