doc/ofproto_v1_4_ref: Add description for Port Structures
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
c36bafea26
commit
950a506494
@ -355,7 +355,7 @@ Bundle Messages
|
|||||||
JSON Example:
|
JSON Example:
|
||||||
|
|
||||||
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of14/5-70-ofp_bundle_add_msg.packet.json
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of14/5-70-ofp_bundle_add_msg.packet.json
|
||||||
|
|
||||||
Set Asynchronous Configuration Message
|
Set Asynchronous Configuration Message
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
@ -435,8 +435,8 @@ Request Forward Message
|
|||||||
JSON Example:
|
JSON Example:
|
||||||
|
|
||||||
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of14/5-71-ofp_requestforward.packet.json
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of14/5-71-ofp_requestforward.packet.json
|
||||||
|
|
||||||
|
|
||||||
Symmetric Messages
|
Symmetric Messages
|
||||||
==================
|
==================
|
||||||
|
|
||||||
@ -487,6 +487,11 @@ Experimenter
|
|||||||
|
|
||||||
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of14/5-16-ofp_experimenter.packet.json
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of14/5-16-ofp_experimenter.packet.json
|
||||||
|
|
||||||
|
Port Structures
|
||||||
|
===============
|
||||||
|
|
||||||
|
.. autoclass:: OFPPort
|
||||||
|
|
||||||
|
|
||||||
Flow Match Structure
|
Flow Match Structure
|
||||||
====================
|
====================
|
||||||
|
@ -1860,6 +1860,34 @@ class OFPFlowRemoved(MsgBase):
|
|||||||
|
|
||||||
|
|
||||||
class OFPPort(StringifyMixin):
|
class OFPPort(StringifyMixin):
|
||||||
|
|
||||||
|
"""
|
||||||
|
Description of a port
|
||||||
|
|
||||||
|
========== =========================================================
|
||||||
|
Attribute Description
|
||||||
|
========== =========================================================
|
||||||
|
port_no Port number and it uniquely identifies a port within
|
||||||
|
a switch.
|
||||||
|
length Length of ofp_port (excluding padding).
|
||||||
|
hw_addr MAC address for the port.
|
||||||
|
name Null-terminated string containing a human-readable name
|
||||||
|
for the interface.
|
||||||
|
config Bitmap of port configration flags.
|
||||||
|
|
||||||
|
| OFPPC_PORT_DOWN
|
||||||
|
| OFPPC_NO_RECV
|
||||||
|
| OFPPC_NO_FWD
|
||||||
|
| OFPPC_NO_PACKET_IN
|
||||||
|
state Bitmap of port state flags.
|
||||||
|
|
||||||
|
| OFPPS_LINK_DOWN
|
||||||
|
| OFPPS_BLOCKED
|
||||||
|
| OFPPS_LIVE
|
||||||
|
properties List of ``OFPPortDescProp`` subclass instance
|
||||||
|
========== =========================================================
|
||||||
|
"""
|
||||||
|
|
||||||
_TYPE = {
|
_TYPE = {
|
||||||
'ascii': [
|
'ascii': [
|
||||||
'hw_addr',
|
'hw_addr',
|
||||||
|
Loading…
Reference in New Issue
Block a user