summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-07-17 11:39:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-07-19 12:39:18 +0900
commitc2c8d4311bcd645b2874a38fefbcd509d1c01799 (patch)
tree3f675fcacbd43a1cac733a0025497db76711c658
parent24e9c1546dda3afb255042ddbccedc60aed43ffb (diff)
of1.3: fix OFPort parser
s/length/_length/ Trace: [0x1000082e5f694c00] ('143.0.1.211', 56538): OFPGetConfigReply received: flags=NORMAL miss_send_len=1518 Error in the datapath 1000082e5f694c00 from ('143.0.1.211', 56538) hub: uncaught exception: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/lib/hub.py", line 48, in _launch func(*args, **kwargs) File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py", line 312, in datapath_connection_factory datapath.serve() File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py", line 232, in serve self._recv_loop() File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py", line 97, in deactivate method(self) File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/controller/controller.py", line 165, in _recv_loop version, msg_type, msg_len, xid, buf) File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/ofproto/ofproto_parser.py", line 54, in msg return msg_parser(datapath, version, msg_type, msg_len, xid, buf) File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/ofproto/ofproto_v1_3_parser.py", line 50, in msg_parser return parser(datapath, version, msg_type, msg_len, xid, buf) File "/usr/local/lib/python2.6/dist-packages/ryu-2.1-py2.6.egg/ryu/ofproto/ofproto_v1_3_parser.py", line 2192, in parser offset += b._length AttributeError: 'OFPPort' object has no attribute '_length' Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_3_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py
index 223cd08c..79944694 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -1485,7 +1485,7 @@ class OFPPort(ofproto_parser.namedtuple('OFPPort', (
def parser(cls, buf, offset):
port = struct.unpack_from(ofproto_v1_3.OFP_PORT_PACK_STR, buf, offset)
ofpport = cls(*port)
- ofpport.length = ofproto_v1_3.OFP_PORT_SIZE
+ ofpport._length = ofproto_v1_3.OFP_PORT_SIZE
return ofpport