blob: 975e056cebbf4bb8f8ef9ac97e5e5e6b4f826581 [file] [log] [blame]
Rich Lane1568b652013-01-04 16:53:13 -08001"""
2These tests require a switch that drops packet-ins.
3"""
4
5import logging
6
7from oftest import config
8import oftest.controller as controller
Rich Laned7b0ffa2013-03-08 15:53:42 -08009import ofp
Rich Lane1568b652013-01-04 16:53:13 -080010import oftest.dataplane as dataplane
Rich Lane1568b652013-01-04 16:53:13 -080011import oftest.base_tests as base_tests
12
13from oftest.testutils import *
14
15@nonstandard
16class PacketInDefaultDrop(base_tests.SimpleDataPlane):
17 """
18 Verify that packet-ins are not received.
19 """
20
21 def runTest(self):
22 delete_all_flows(self.controller)
23 do_barrier(self.controller)
24
25 for of_port in config["port_map"].keys():
Rich Lane4c504f32013-06-07 17:24:14 -070026 pkt = str(simple_tcp_packet())
27 self.dataplane.send(of_port, pkt)
28 verify_no_packet_in(self, pkt, of_port)