'Get all assigned devices.
Get all assigned devices belongs to given embedded switch
@param phys_net: physical network, if none get all assigned devices
@return: set of assigned VFs (mac address, pci slot) pair'

def get_assigned_devices_info(self, phys_net=None):

    if phys_net:
        eswitch_objects = self.emb_switches_map.get(phys_net, set())
    else:
        eswitch_objects = set()
        for eswitch_list in self.emb_switches_map.values():
            eswitch_objects |= set(eswitch_list)
    assigned_devices = set()
    for embedded_switch in eswitch_objects:
        for device in embedded_switch.get_assigned_devices_info():
            assigned_devices.add(device)
    return assigned_devices
