this breaks from_json/to_json for old api

Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/ofproto/ofproto_v1_2_parser.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ryu/ofproto/ofproto_v1_2_parser.py 
b/ryu/ofproto/ofproto_v1_2_parser.py
index 724809e..da98770 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -1653,6 +1653,15 @@ class OFPMatch(StringifyMixin):
     def get(self, key, default=None):
         return self._fields2.get(key, default)
 
+    stringify_attrs = iteritems
+
+    def to_jsondict(self):
+        return super(OFPMatch, self).to_jsondict(lambda x: x)
+
+    @classmethod
+    def from_jsondict(cls, dict_):
+        return super(OFPMatch, cls).from_jsondict(dict_, lambda x: x)
+
     def append_field(self, header, value, mask=None):
         self.fields.append(OFPMatchField.make(header, value, mask))
 
-- 
1.8.1.5


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to