vendor value is available as cls_vendor.
Signed-off-by: Isaku Yamahata <[email protected]>
---
ryu/ofproto/ofproto_v1_0_parser.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py
b/ryu/ofproto/ofproto_v1_0_parser.py
index 96781ff..95c60b7 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -459,9 +459,9 @@ class OFPActionVendor(OFPAction):
return cls
return _register_action_vendor
- def __init__(self, vendor):
+ def __init__(self):
super(OFPActionVendor, self).__init__()
- self.vendor = vendor
+ self.vendor = self.cls_vendor
@classmethod
def parser(cls, buf, offset):
@@ -484,7 +484,7 @@ class NXActionHeader(OFPActionVendor):
return _register_nx_action_subtype
def __init__(self, subtype_, len_):
- super(NXActionHeader, self).__init__(ofproto_v1_0.NX_VENDOR_ID)
+ super(NXActionHeader, self).__init__()
self.len = len_
self.subtype = subtype_
--
1.7.10.4
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel