mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-04 12:01:02 +02:00
of10: 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:
parent
35676eba53
commit
7cbc98db1f
@ -1076,6 +1076,15 @@ class OFPAggregateStats(ofproto_parser.namedtuple('OFPAggregateStats', (
|
||||
class OFPTableStats(ofproto_parser.namedtuple('OFPTableStats', (
|
||||
'table_id', 'name', 'wildcards', 'max_entries', 'active_count',
|
||||
'lookup_count', 'matched_count'))):
|
||||
|
||||
_TYPE = {
|
||||
'utf-8': [
|
||||
# OF spec is unclear about the encoding of name.
|
||||
# we assumes UTF-8.
|
||||
'name',
|
||||
]
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
tbl = struct.unpack_from(ofproto_v1_0.OFP_TABLE_STATS_PACK_STR,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user