Esempio n. 1
0
def _should_enable_unknown_hosts():
    """Check whether we should enable DHCP for unknown hosts

    We blacklist unknown hosts unless one or more nodes are on introspection
    and node_not_found_hook is not set.
    """
    return (node_cache.introspection_active()
            or CONF.processing.node_not_found_hook is not None)
Esempio n. 2
0
def _should_enable_dhcp():
    """Check whether we should enable DHCP at all.

    We won't even open our DHCP if no nodes are on introspection and
    node_not_found_hook is not set.
    """
    return (node_cache.introspection_active() or
            CONF.processing.node_not_found_hook is not None)
Esempio n. 3
0
def _should_enable_dhcp():
    """Check whether we should enable DHCP at all.

    We won't even open our DHCP if no nodes are on introspection and
    node_not_found_hook is not set.
    """
    return (node_cache.introspection_active() or
            CONF.processing.node_not_found_hook is not None)
Esempio n. 4
0
def _should_enable_unknown_hosts():
    """Check whether we should enable DHCP for unknown hosts

    We blacklist unknown hosts unless one or more nodes are on introspection
    and node_not_found_hook is not set.
    """
    return (node_cache.introspection_active() or
            CONF.processing.node_not_found_hook is not None)