Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/ofproto/ofproto_v1_3_parser.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py
b/ryu/ofproto/ofproto_v1_3_parser.py
index 38226a9..328acd4 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -106,10 +106,10 @@ class OFPHelloElemVersionBitmap(StringifyMixin):
versions list of versions of OpenFlow protocol a device supports
========== =========================================================
"""
- def __init__(self, versions):
+ def __init__(self, versions, type_=None, length=None):
super(OFPHelloElemVersionBitmap, self).__init__()
- self._type = ofproto_v1_3.OFPHET_VERSIONBITMAP
- self._length = None
+ self.type = ofproto_v1_3.OFPHET_VERSIONBITMAP
+ self.length = None
self._bitmaps = None
self.versions = versions
@@ -134,7 +134,7 @@ class OFPHelloElemVersionBitmap(StringifyMixin):
for i, bitmap in enumerate(bitmaps)
for shift in range(31) if bitmap & (1 << shift)]
elem = cls(versions)
- elem._length = length
+ elem.length = length
elem._bitmaps = bitmaps
return elem
--
1.8.3.1
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel