os-ken/doc/source/ofproto_base.rst
YAMAMOTO Takashi 32977c125e document MsgBase
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-20 09:40:53 +09:00

1.1 KiB

OpenFlow version independent classes and functions

Base class for OpenFlow messages

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

Functions

ofp_msg_from_jsondict