

def test_add_dvr_mac_tun(self):
    mac = '00:02:b3:13:fe:3d'
    port = 8888
    self.br.add_dvr_mac_tun(mac=mac, port=port)
    (dp, ofp, ofpp) = self._get_dp()
    expected = [call._send_msg(ofpp.OFPFlowMod(dp, cookie=self.stamp, instructions=[ofpp.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS, [ofpp.OFPActionOutput(port, 0)])], match=ofpp.OFPMatch(eth_src=mac), priority=1, table_id=9))]
    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_add_dvr_mac_tun/original