'Generator to yield port info.
For each known (i.e found in VLAN manager) network in
fdb_entries, yield (lvm, fdb_entries[network_id][\'ports\']) pair.
:param fdb_entries: l2pop fdb entries'

def get_agent_ports(self, fdb_entries):

    vlan_manager = vlanmanager.LocalVlanManager()
    for (network_id, values) in fdb_entries.items():
        try:
            lvm = vlan_manager.get(network_id)
        except vlanmanager.MappingNotFound:
            continue
        agent_ports = values.get('ports')
        (yield (lvm, agent_ports))
