summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-09-04 16:04:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-09-14 08:01:34 +0900
commitf8b26c8dabeecd9efe379237fe48b943b9547cd7 (patch)
tree1db31ec0a97ff87d3982e4428e5d27245f8020aa
parent7cbc98db1fe8430f961e5e36229a56b8c816eeba (diff)
of12: assume OFPTableStats.name UTF-8
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_2_parser.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py
index bb2a3554..c055ae80 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -2308,6 +2308,15 @@ class OFPTableStats(
stat.lookup_count, stat.matched_count))
self.logger.debug('TableStats: %s', tables)
"""
+
+ _TYPE = {
+ 'utf-8': [
+ # OF spec is unclear about the encoding of name.
+ # we assumes UTF-8.
+ 'name',
+ ]
+ }
+
@classmethod
def parser(cls, buf, offset):
table = struct.unpack_from(