コード例 #1
0
ファイル: dnsmasq.py プロジェクト: bestjie/ironic-inspector
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)
コード例 #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)
コード例 #3
0
ファイル: iptables.py プロジェクト: gudrutis/ironic-inspector
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)
コード例 #4
0
ファイル: dnsmasq.py プロジェクト: openstack/ironic-inspector
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)