def kill_dhcp(conf, namespace):
 network_id = namespace.replace(dhcp.NS_PREFIX, '')
 dhcp_driver = importutils.import_object(conf.dhcp_driver, conf=conf, process_monitor=_get_dhcp_process_monitor(conf), network=dhcp.NetModel({'id': network_id}), plugin=FakeDhcpPlugin())
 if dhcp_driver.active:
  dhcp_driver.disable()

def kill_dhcp ( conf , namespace ) : network_id = namespace . replace ( dhcp . NS_PREFIX , '' ) dhcp_driver = importutils . import_object ( conf . dhcp_driver , conf = conf , process_monitor = _get_dhcp_process_monitor ( conf ) , network = dhcp . NetModel ( { 'id' : network_id } ) , plugin = FakeDhcpPlugin ( ) ) if dhcp_driver . active : dhcp_driver . disable ( )
disable dhcp for a network if dhcp is still active .