summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-11-22 16:33:13 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-11-23 11:37:47 +0900
commit180cbe7609e116abc3ad2549b9e2928251ed022d (patch)
tree48990911e1865834ca5a99605742ff7f123a75d2
parent2b7d08f2efb6ae9a7f8c21b3ec6678a2ce3ddfdc (diff)
of1.3: fix OFP_DESC_PACK_STR
File "/Users/fujita/git/ryu/ryu/ofproto/ofproto_v1_3.py", line 533, in <module> DESC_STR_LEN + 'c' TypeError: cannot concatenate 'str' and 'int' objects Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_3.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py
index 6ab4049a..c9f34ded 100644
--- a/ryu/ofproto/ofproto_v1_3.py
+++ b/ryu/ofproto/ofproto_v1_3.py
@@ -526,11 +526,11 @@ DESC_STR_LEN_STR = str(DESC_STR_LEN)
SERIAL_NUM_LEN = 32
SERIAL_NUM_LEN_STR = str(SERIAL_NUM_LEN)
OFP_DESC_PACK_STR = '!' + \
- DESC_STR_LEN + 'c' + \
- DESC_STR_LEN + 'c' + \
- DESC_STR_LEN + 'c' + \
- SERIAL_NUM_LEN + 'c' + \
- DESC_STR_LEN + 'c'
+ DESC_STR_LEN_STR + 'c' + \
+ DESC_STR_LEN_STR + 'c' + \
+ DESC_STR_LEN_STR + 'c' + \
+ SERIAL_NUM_LEN_STR + 'c' + \
+ DESC_STR_LEN_STR + 'c'
OFP_DESC_SIZE = 1056
assert calcsize(OFP_DESC_PACK_STR) == OFP_DESC_SIZE