diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-09-04 16:04:29 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-14 08:01:33 +0900 |
commit | 2b3d71541fc50956ba3a9ad3f8c1ef8fe111c256 (patch) | |
tree | 9213e221eeff1caf0d93881a8d0f691fd7c54909 | |
parent | a1fc266c4a1a8b208f26bd70068c9a056e996cea (diff) |
of12: assume OFPPort.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.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 5c031809..bb2a3554 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -297,10 +297,11 @@ class OFPPort(ofproto_parser.namedtuple('OFPPort', ( _TYPE = { 'ascii': [ 'hw_addr', - - # XXX OF spec is unclear about the encoding of name. - # OVS seems to use UTF-8. - # 'name', + ], + 'utf-8': [ + # OF spec is unclear about the encoding of name. + # we assumes UTF-8, which is used by OVS. + 'name', ] } |