loxi-prep: rename stats request/type field 'type' to 'stats_type'
diff --git a/src/python/of10/parse.py b/src/python/of10/parse.py
index a399c68..63d17c9 100644
--- a/src/python/of10/parse.py
+++ b/src/python/of10/parse.py
@@ -103,7 +103,7 @@
sub_hdr = message.ofp_stats_request()
sub_hdr.unpack(binary_string[cstruct.OFP_HEADER_BYTES:])
try:
- obj = stats_request_to_class_map[sub_hdr.type]()
+ obj = stats_request_to_class_map[sub_hdr.stats_type]()
except KeyError:
obj = None
return obj
@@ -111,7 +111,7 @@
sub_hdr = message.ofp_stats_reply()
sub_hdr.unpack(binary_string[cstruct.OFP_HEADER_BYTES:])
try:
- obj = stats_reply_to_class_map[sub_hdr.type]()
+ obj = stats_reply_to_class_map[sub_hdr.stats_type]()
except KeyError:
obj = None
return obj