

def _namespace_monitor(self):
    while True:
        eventlet.sleep(MONITOR_INTERVAL)
        try:
            curr_ns = set(netns.nslist())
        except Exception:
            LOG.error(_LE('Failed to get current namespace set'))
            continue
        for ns in curr_ns:
            if ((not ns.startswith('qdhcp')) or (ns in curr_ns.ns_states)):
                continue
            self.ns_states[ns] = NS_RELAY_PENDING
            eventlet.spawn_n(self._client_network_relay, ns)
        for ns in self.ns_states:
            if (ns in curr_ns):
                continue
            self.ns_states[ns] = NS_RELAY_DELETING

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/cpnr/dhcp_relay.py DhcpRelayAgent._namespace_monitor/VarMisuse@78/110 `self`->`curr_ns`