This commit has some improvements for the code related to the OpenFlow 1.2
The changes are:
- On match unpack, insert the proper match tlv object. (e.g, if the oxm field is
an inport, insert and inport object).
- Add a compare method to oxm_tlvs and match_list, because there was not how to test
if the match in messages like flow_stats or flow_removed were correctly sent by the switch.
- Improvements to the print format of oxm_tlvs.
Also, there is a minor fix for the groups test.
diff --git a/tests-1.2/flow_mods.py b/tests-1.2/flow_mods.py
index d1a4fc4..1fe05ee 100644
--- a/tests-1.2/flow_mods.py
+++ b/tests-1.2/flow_mods.py
@@ -43,6 +43,7 @@
"Expected only one flow_mod")
stat = flow_stats.stats[0]
self.assertEqual(stat.match, fm_new.match)
+ self.assertEqual(stat.match_fields, fm_new.match_fields)
self.assertEqual(stat.instructions, fm_new.instructions)
# @todo consider adding more tests here