Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Latest commit

 

History

History
49 lines (36 loc) · 1.13 KB

ofproto_base.rst

File metadata and controls

49 lines (36 loc) · 1.13 KB

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