summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/ofproto/ofproto_v1_0_parser.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py
index 7ed33c1f..db11aacf 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -86,10 +86,11 @@ class OFPPhyPort(ofproto_parser.namedtuple('OFPPhyPort', (
_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',
]
}