def pop_local_cache(self, port_uuid, mac, net_uuid, lvid, vdp_vlan,
                        segmentation_id):
        """Populate the local cache after restart. """

        LOG.info("Populating the OVS VDP cache with port %(port_uuid)s, "
                 "mac %(mac)s net %(net_uuid)s lvid %(lvid)s vdpvlan "
                 "%(vdp_vlan)s seg %(seg)s",
                 {'port_uuid': port_uuid, 'mac': mac, 'net_uuid': net_uuid,
                  'lvid': lvid, 'vdp_vlan': vdp_vlan, 'seg': segmentation_id})
        lvm = self.local_vlan_map.get(net_uuid)
        if not lvm:
            lvm = LocalVlan(lvid, segmentation_id)
            self.local_vlan_map[net_uuid] = lvm
        lvm.lvid = lvid
        lvm.set_port_uuid(port_uuid, vdp_vlan, None)
        if vdp_vlan != cconstants.INVALID_VLAN:
            lvm.late_binding_vlan = vdp_vlan
            lvm.vdp_nego_req = False
def pop_local_cache ( self , port_uuid , mac , net_uuid , lvid , vdp_vlan , segmentation_id ) : LOG . info ( "Populating the OVS VDP cache with port %(port_uuid)s, " "mac %(mac)s net %(net_uuid)s lvid %(lvid)s vdpvlan " "%(vdp_vlan)s seg %(seg)s" , { 'port_uuid' : port_uuid , 'mac' : mac , 'net_uuid' : net_uuid , 'lvid' : lvid , 'vdp_vlan' : vdp_vlan , 'seg' : segmentation_id } ) lvm = self . local_vlan_map . get ( net_uuid ) if not lvm : lvm = LocalVlan ( lvid , segmentation_id ) self . local_vlan_map [ net_uuid ] = lvm lvm . lvid = lvid lvm . set_port_uuid ( port_uuid , vdp_vlan , None ) if vdp_vlan != cconstants . INVALID_VLAN : lvm . late_binding_vlan = vdp_vlan lvm . vdp_nego_req = False
Populate the local cache after restart.