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>
This commit is contained in:
YAMAMOTO Takashi 2013-09-04 16:04:34 +09:00 committed by FUJITA Tomonori
parent 7cbc98db1f
commit f8b26c8dab

View File

@ -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(