summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/ofproto/ofproto_v1_0_parser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py
index be031894..7ed33c1f 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -1079,6 +1079,9 @@ class OFPTableStats(ofproto_parser.namedtuple('OFPTableStats', (
def parser(cls, buf, offset):
tbl = struct.unpack_from(ofproto_v1_0.OFP_TABLE_STATS_PACK_STR,
buf, offset)
+ tbl = list(tbl)
+ i = cls._fields.index('name')
+ tbl[i] = tbl[i].rstrip('\0')
stats = cls(*tbl)
stats.length = ofproto_v1_0.OFP_TABLE_STATS_SIZE
return stats