

def test_install_arp_responder(self):
    vlan = 3333
    ip = '192.0.2.1'
    mac = '08:60:6e:7f:74:e7'
    self.br.install_arp_responder(vlan=vlan, ip=ip, mac=mac)
    (dp, ofp, ofpp) = self._get_dp()
    expected = [call._send_msg(ofpp.OFPFlowMod(dp, cookie=self.stamp, instructions=[ofpp.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS, [ofpp.OFPActionSetField(arp_op=self.arp.ARP_REPLY), ofpp.NXActionRegMove(dst_field='arp_tha', n_bits=48, src_field='arp_sha'), ofpp.NXActionRegMove(dst_field='arp_tpa', n_bits=32, src_field='arp_spa'), ofpp.OFPActionSetField(arp_sha=mac), ofpp.OFPActionSetField(arp_spa=ip), ofpp.OFPActionOutput(ofp.OFPP_IN_PORT, 0)])], match=ofpp.OFPMatch(eth_type=self.ether_types.ETH_TYPE_ARP, arp_tpa=ip, vlan_vid=(vlan | ofp.OFPVID_PRESENT)), priority=1, table_id=21))]
    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_install_arp_responder/original