Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/ofproto/ofproto_v1_3_parser.py | 26 +-------------------------
 1 file changed, 1 insertion(+), 25 deletions(-)

diff --git a/ryu/ofproto/ofproto_v1_3_parser.py 
b/ryu/ofproto/ofproto_v1_3_parser.py
index b311fb3..3980842 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -349,35 +349,11 @@ class FlowWildcards(object):
 
 
 class OFPMatch(StringifyMixin):
-    def __init__(self, fields=[], type_=None, _normalize=False, **kwargs):
+    def __init__(self, _normalize=False, **kwargs):
         super(OFPMatch, self).__init__()
         self._wc = FlowWildcards()
         self._flow = Flow()
         self.fields = []
-        # accept type_ and length to be compatible with parser
-        if not type_ is None:
-            self.type = type_
-        if fields:
-            # we are doing de-stringify.
-            # we have two goals:
-            #   - the resulted object should be serialize()-able.
-            #   - the resulted object should be inspectable by applications.
-            #     ie. fields[] should be filled.
-            # mimic appropriate set_foo calls and the first half of serialize.
-            import sys
-            this_module = sys.modules[__name__]
-            for o in fields:
-                assert len(o) == 1
-                for k, v in o.iteritems():
-                    cls = getattr(this_module, k)
-                    mask = v.get("mask", None)
-                    header = OFPMatchField.cls_to_header(cls, not mask is None)
-                    value = v["value"]
-                    value = self._decode_value(value)
-                    if not mask is None:
-                        mask = self._decode_value(mask)
-                    f = cls(header, value, mask)
-                    self.fields.append(f)
 
         # eg.
         #   OFPMatch(eth_src=('ff:ff:ff:00:00:00'), eth_type=0x800,
-- 
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