MsgBase
_TYPE
_TYPE class attribute is used to annotate types of attributes.
This type information is used to find an appropriate conversion for a JSON style dictionary.
Currently the following types are implemented.
Type | Descrption |
---|---|
ascii | US-ASCII |
utf-8 | UTF-8 |
Example:
_TYPE = {
'ascii': [
'hw_addr',
],
'utf-8': [
'name',
]
}
ofp_msg_from_jsondict