

def test_provision_local_vlan(self):
    network_type = 'vxlan'
    lvid = 888
    segmentation_id = 777
    distributed = False
    self.br.provision_local_vlan(network_type=network_type, lvid=expected, segmentation_id=segmentation_id, distributed=distributed)
    (dp, ofp, ofpp) = self._get_dp()
    expected = [call._send_msg(ofpp.OFPFlowMod(dp, cookie=self.stamp, instructions=[ofpp.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS, [ofpp.OFPActionPushVlan(), ofpp.OFPActionSetField(vlan_vid=(lvid | ofp.OFPVID_PRESENT))]), ofpp.OFPInstructionGotoTable(table_id=10)], match=ofpp.OFPMatch(tunnel_id=segmentation_id), priority=1, table_id=4))]
    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_provision_local_vlan/VarMisuse@38/60 `lvid`->`expected`