

def test_install_flood_to_tun(self):
    vlan = 3333
    tun_id = 2222
    ports = [11, 44, 22, 33]
    self.br.install_flood_to_tun(vlan=vlan, tun_id=tun_id, ports=ports)
    (dp, ofp, ofpp) = self._get_dp()
    expected = [call._send_msg(ofpp.OFPFlowMod(dp, cookie=dp.stamp, instructions=[ofpp.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS, ([ofpp.OFPActionPopVlan(), ofpp.OFPActionSetField(tunnel_id=tun_id)] + [ofpp.OFPActionOutput(p, 0) for p in ports]))], match=ofpp.OFPMatch(vlan_vid=(vlan | ofp.OFPVID_PRESENT)), priority=1, table_id=22))]
    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_flood_to_tun/VarMisuse@78/105 `self`->`dp`