Skip to content

Commit a94c507

Browse files
author
Brandon Heller
committed
Minor fix to twoport test
1 parent 33bf7bc commit a94c507

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

twoport.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ def _handle_PacketIn(event):
1616
else:
1717
raise Exception("?")
1818
#msg = of.ofp_packet_out(data=event.data, in_port=of.OFPP_CONTROLLER)
19-
# Note: w/ovs-openflowd, using OFPP_NONE or OFPP_CONTROLLER does not seem to
20-
# work, and results in an invalid argument error.
21-
msg = of.ofp_packet_out(in_port=of.OFPP_CONTROLLER)
19+
# Note: w/older ovs-openflowd, using OFPP_NONE or OFPP_CONTROLLER does
20+
# not seem to work, and results in an invalid argument error.
21+
# OFPP_NONE seems to work properly on more recent OVS versions like 1.4
22+
msg = of.ofp_packet_out(in_port=of.OFPP_NONE)
2223
msg.actions.append(of.ofp_action_output(port = out_port, max_len = 0x2000))
2324
msg.buffer_id = event.ofp.buffer_id
2425
if not c:

0 commit comments

Comments
 (0)