Signed-off-by: Minoru TAKAHASHI <[email protected]>
---
 doc/source/ofproto_v1_5_ref.rst    |  9 ++++++
 ryu/ofproto/ofproto_v1_5_parser.py | 60 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/doc/source/ofproto_v1_5_ref.rst b/doc/source/ofproto_v1_5_ref.rst
index 2ac0a83..a78cfb6 100644
--- a/doc/source/ofproto_v1_5_ref.rst
+++ b/doc/source/ofproto_v1_5_ref.rst
@@ -524,6 +524,11 @@ Experimenter
 
     .. literalinclude:: 
../../ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-error_msg_experimenter.packet.json
 
+Port Structures
+===============
+
+.. autoclass:: OFPPort
+
 Flow Match Structure
 ====================
 
@@ -565,4 +570,8 @@ Action Structures
 .. autoclass:: OFPActionMeter
 .. autoclass:: OFPActionExperimenter
 
+Controller Status Structure
+===========================
+
+.. autoclass:: OFPControllerStatusStats
 
diff --git a/ryu/ofproto/ofproto_v1_5_parser.py 
b/ryu/ofproto/ofproto_v1_5_parser.py
index 01dcad0..99a92fa 100644
--- a/ryu/ofproto/ofproto_v1_5_parser.py
+++ b/ryu/ofproto/ofproto_v1_5_parser.py
@@ -2094,6 +2094,34 @@ class OFPFlowRemoved(MsgBase):
 
 
 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 = {
         'ascii': [
             'hw_addr',
@@ -5272,6 +5300,38 @@ class 
OFPControllerStatusPropExperimenter(OFPPropCommonExperimenter4ByteData):
 
 
 class OFPControllerStatusStats(StringifyMixin):
+
+    """
+    Controller status structure
+
+    ============== =========================================================
+    Attribute      Description
+    ============== =========================================================
+    length         Length of this entry.
+    short_id       ID number which identifies the controller.
+    role           Bitmap of controller's role flags.
+
+                   | OFPCR_ROLE_NOCHANGE
+                   | OFPCR_ROLE_EQUAL
+                   | OFPCR_ROLE_MASTER
+                   | OFPCR_ROLE_SLAVE
+    reason         Bitmap of controller status reason flags.
+
+                   | OFPCSR_REQUEST
+                   | OFPCSR_CHANNEL_STATUS
+                   | OFPCSR_ROLE
+                   | OFPCSR_CONTROLLER_ADDED
+                   | OFPCSR_CONTROLLER_REMOVED
+                   | OFPCSR_SHORT_ID
+                   | OFPCSR_EXPERIMENTER
+    channel_status Bitmap of control channel status flags.
+
+                   | OFPCT_STATUS_UP
+                   | OFPCT_STATUS_DOWN
+    properties     List of ``OFPControllerStatusProp`` subclass instance
+    ============== =========================================================
+    """
+
     def __init__(self, short_id=None, role=None, reason=None,
                  channel_status=None, properties=None, length=None):
         super(OFPControllerStatusStats, self).__init__()
-- 
1.9.1


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to