nicira_dec_ttl: also test with a flow
Suggested by Gregor. The flow_match_test function doesn't support checking for
drops so I've kept the packet-out portion of the test too.
diff --git a/tests/nicira_dec_ttl.py b/tests/nicira_dec_ttl.py
index c5445f3..013eae7 100644
--- a/tests/nicira_dec_ttl.py
+++ b/tests/nicira_dec_ttl.py
@@ -31,6 +31,12 @@
portB = of_ports[1]
portC = of_ports[2]
+ # Test using flow mods (does not test drop)
+ flow_match_test(self, config["port_map"],
+ pkt=simple_tcp_packet(pktlen=100, ip_ttl=2),
+ exp_pkt=simple_tcp_packet(pktlen=100, ip_ttl=1),
+ action_list=[action_nx_dec_ttl()])
+
outpkt = simple_tcp_packet(pktlen=100, ip_ttl=3)
msg = ofp.message.packet_out(in_port=ofp.OFPP_NONE,
data=str(outpkt),