'Process emb_switch_map
@param phys_net: physical network
@param dev_name: device name
@param exclude_devices: PCI devices to ignore.'

def _process_emb_switch_map(self, phys_net, dev_name, exclude_devices):

    emb_switches = self.emb_switches_map.get(phys_net, [])
    for switch in emb_switches:
        if (switch.dev_name == dev_name):
            if (not PciOsWrapper.pf_device_exists(dev_name)):
                self.emb_switches_map.get(phys_net).remove(switch)
            return
    if PciOsWrapper.pf_device_exists(dev_name):
        self._create_emb_switch(phys_net, dev_name, exclude_devices.get(dev_name, set()))
