def add_node_class_exclusion(nm_host, node_id, classname, dry_run=False, verbose=False):
    '\n    add a class exclusion to a node in NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param node_id: numeric ID of the node to add param to\n    :type node_id: int\n    :param classname: class name to exclude\n    :type classname: string\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 = {'node': node_id, 'exclusion': classname}
    url = ('http://%s/enc/exclusions/classes/' % nm_host)
    logger.debug("adding class exclusion for '{cn}' to node {n}".format(n=node_id, cn=classname))
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return True
    logger.error(('ERROR: add_node_class_exclusion got status code %d' % status_code))
    return False
add a class exclusion to a node in NodeMeister

:param nm_host: NodeMeister hostname or IP
:type nm_host: string
:param node_id: numeric ID of the node to add param to
:type node_id: int
:param classname: class name to exclude
:type classname: string
: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_node_class_exclusion(nm_host, node_id, classname, dry_run=False, verbose=False):
    '\n    add a class exclusion to a node in NodeMeister\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param node_id: numeric ID of the node to add param to\n    :type node_id: int\n    :param classname: class name to exclude\n    :type classname: string\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 = {'node': node_id, 'exclusion': classname}
    url = ('http://%s/enc/exclusions/classes/' % nm_host)
    logger.debug("adding class exclusion for '{cn}' to node {n}".format(n=node_id, cn=classname))
    status_code = do_post(url, payload, dry_run=dry_run)
    if (status_code == 201):
        return True
    logger.error(('ERROR: add_node_class_exclusion got status code %d' % status_code))
    return False