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>
This commit is contained in:
YAMAMOTO Takashi 2013-09-04 16:04:29 +09:00 committed by FUJITA Tomonori
parent a1fc266c4a
commit 2b3d71541f

View File

@ -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',
]
}