

def test_reclaim_local_vlan(self):
    network_type = 'vxlan'
    segmentation_id = 777
    self.br.reclaim_local_vlan(network_type=network_type, segmentation_id=segmentation_id)
    (dp, ofp, ofpp) = self._get_dp()
    expected = [call.delete_flows(table_id=4, match=ofpp.OFPMatch(tunnel_id=segmentation_id))]
    self.assertEqual(expected, self.mock.mock_calls)

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/test_br_tun.py OVSTunnelBridgeTest.test_reclaim_local_vlan/original