'Reclaim a local VLAN.
:param net_uuid: the network uuid associated with this vlan.'

def reclaim_local_vlan(self, net_uuid):

    try:
        lvm = vlanmanager.LocalVlanManager().pop(net_uuid)
    except KeyError:
        LOG.debug('Network    %s    not    used    on    agent.', net_uuid)
        return
    LOG.info(_LI('Reclaiming    vlan    =    %(vlan_id)s    from    net-id    =    %(net_uuid)s'), {'vlan_id': lvm.vlan, 'net_uuid': net_uuid})
    if (lvm.network_type in constants.TUNNEL_NETWORK_TYPES):
        if self.enable_tunneling:
            self.tun_br.reclaim_local_vlan(network_type=lvm.network_type, segmentation_id=lvm.segmentation_id)
            self.tun_br.delete_flood_to_tun(lvm.vlan)
            self.tun_br.delete_unicast_to_tun(lvm.vlan, None)
            self.tun_br.delete_arp_responder(lvm.vlan, None)
            if self.l2_pop:
                for ofport in lvm.tun_ofports:
                    self.cleanup_tunnel_port(self.tun_br, ofport, lvm.network_type)
    elif (lvm.network_type == p_const.TYPE_FLAT):
        if (lvm.physical_network in self.phys_brs):
            br = self.phys_brs[lvm.physical_network]
            br.reclaim_local_vlan(port=self.phys_ofports[lvm.physical_network], lvid=lvm.vlan)
            br = self.int_br
            br.reclaim_local_vlan(port=self.int_ofports[lvm.physical_network], segmentation_id=None)
    elif (lvm.network_type == p_const.TYPE_VLAN):
        if (lvm.physical_network in self.phys_brs):
            br = self.phys_brs[lvm.physical_network]
            br.reclaim_local_vlan(port=self.phys_ofports[lvm.physical_network], lvid=lvm.vlan)
            br = self.int_br
            br.reclaim_local_vlan(port=self.int_ofports[lvm.physical_network], segmentation_id=lvm.segmentation_id)
    elif (lvm.network_type == p_const.TYPE_LOCAL):
        pass
    else:
        LOG.error(_LE('Cannot    reclaim    unknown    network    type    %(network_type)s    for    net-id=%(net_uuid)s'), {'network_type': lvm.network_type, 'net_uuid': net_uuid})
    self.available_local_vlans.add(lvm.vlan)
