implement packet_to_flow_match_oxm for OF 1.4
diff --git a/src/python/oftest/parse.py b/src/python/oftest/parse.py
index 0d57443..496405e 100644
--- a/src/python/oftest/parse.py
+++ b/src/python/oftest/parse.py
@@ -89,6 +89,8 @@
return packet_to_flow_match_v3(packet)
elif ofp.OFP_VERSION == 4:
return packet_to_flow_match_v4(packet)
+ elif ofp.OFP_VERSION == 5:
+ return packet_to_flow_match_v5(packet)
else:
raise NotImplementedError()
@@ -181,6 +183,13 @@
import loxi.of13 as ofp
return packet_to_flow_match_oxm(packet, ofp)
+def packet_to_flow_match_v5(packet):
+ """
+ OpenFlow 1.3 implementation of packet_to_flow_match
+ """
+ import loxi.of14 as ofp
+ return packet_to_flow_match_oxm(packet, ofp)
+
def packet_to_flow_match_oxm(packet, ofp):
def parse_ether_layer(layer, match):
assert(type(layer) == scapy.Ether)