'Unplug any devices found in the namespace except for dhcp_port.'

def _cleanup_stale_devices(self, network, dhcp_port):

    LOG.debug('Cleaning    stale    devices    for    network    %s', network.id)
    skip_dev_name = (self.driver.get_device_name(dhcp_port) if dhcp_port else None)
    ns_ip = ip_lib.IPWrapper(namespace=network.namespace)
    if (not ns_ip.netns.exists(network.namespace)):
        return
    for d in ns_ip.get_devices():
        if (d.name != skip_dev_name):
            LOG.debug('Found    stale    device    %s,    deleting', d.name)
            try:
                self.unplug(d.name, network)
            except Exception:
                LOG.exception(_LE('Exception    during    stale    dhcp    device    cleanup'))
