Signed-off-by: Yoshihiro Kaneko <[email protected]>
---
 ryu/lib/packet/dhcp.py   |    4 ++
 ryu/lib/packet/icmp.py   |   22 +++++---
 ryu/lib/packet/icmpv6.py |   11 +++-
 ryu/lib/packet/ipv6.py   |    2 +
 ryu/lib/packet/llc.py    |    2 +
 ryu/lib/packet/slow.py   |  128 +++++++++++++++++++++++++++-------------------
 6 files changed, 107 insertions(+), 62 deletions(-)

diff --git a/ryu/lib/packet/dhcp.py b/ryu/lib/packet/dhcp.py
index 3907c75..471ea04 100644
--- a/ryu/lib/packet/dhcp.py
+++ b/ryu/lib/packet/dhcp.py
@@ -98,6 +98,8 @@ class dhcp(packet_base.PacketBase):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|L|
+
     ============== ====================
     Attribute      Description
     ============== ====================
@@ -201,6 +203,8 @@ class options(stringify.StringifyMixin):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|L|
+
     ============== ====================
     Attribute      Description
     ============== ====================
diff --git a/ryu/lib/packet/icmp.py b/ryu/lib/packet/icmp.py
index eefde81..6f2e959 100644
--- a/ryu/lib/packet/icmp.py
+++ b/ryu/lib/packet/icmp.py
@@ -40,6 +40,8 @@ class icmp(packet_base.PacketBase):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|L|
+
     ============== ====================
     Attribute      Description
     ============== ====================
@@ -125,6 +127,8 @@ class echo(stringify.StringifyMixin):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|L|
+
     ============== ====================
     Attribute      Description
     ============== ====================
@@ -178,15 +182,19 @@ class dest_unreach(stringify.StringifyMixin):
     [RFC1191] reserves bits for the "Next-Hop MTU" field.
     [RFC4884] introduced 8-bit data length attribute.
 
-    ============== ====================
+    .. tabularcolumns:: |l|p{35em}|
+
+    ============== =====================================================
     Attribute      Description
-    ============== ====================
+    ============== =====================================================
     data_len       data length
-    mtu            Next-Hop MTU \
-                   NOTE: This field is required when icmp code is 4 \
-                    code 4 = fragmentation needed and DF set
+    mtu            Next-Hop MTU
+
+                   NOTE: This field is required when icmp code is 4
+
+                   code 4 = fragmentation needed and DF set
     data           Internet Header + leading octets of original datagram
-    ============== ====================
+    ============== =====================================================
     """
 
     _PACK_STR = '!xBH'
@@ -233,6 +241,8 @@ class TimeExceeded(stringify.StringifyMixin):
 
     [RFC4884] introduced 8-bit data length attribute.
 
+    .. tabularcolumns:: |l|L|
+
     ============== ====================
     Attribute      Description
     ============== ====================
diff --git a/ryu/lib/packet/icmpv6.py b/ryu/lib/packet/icmpv6.py
index 92a9f53..ac1d534 100644
--- a/ryu/lib/packet/icmpv6.py
+++ b/ryu/lib/packet/icmpv6.py
@@ -64,14 +64,17 @@ class icmpv6(packet_base.PacketBase):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|p{35em}|
+
     ============== ====================
     Attribute      Description
     ============== ====================
     type\_         Type
     code           Code
-    csum           CheckSum \
+    csum           CheckSum
                    (0 means automatically-calculate when encoding)
-    data           Payload. \
+    data           Payload.
+
                    ryu.lib.packet.icmpv6.echo object, or \
                    ryu.lib.packet.icmpv6.nd_neighbor object, or a bytearray.
     ============== ====================
@@ -136,6 +139,8 @@ class nd_neighbor(stringify.StringifyMixin):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|p{35em}|
+
     ============== ====================
     Attribute      Description
     ============== ====================
@@ -221,6 +226,8 @@ class nd_option_la(stringify.StringifyMixin):
     Most of them are same to the on-wire counterparts but in host byte order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|p{35em}|
+
     ============== ====================
     Attribute      Description
     ============== ====================
diff --git a/ryu/lib/packet/ipv6.py b/ryu/lib/packet/ipv6.py
index 53bc5fb..325f834 100644
--- a/ryu/lib/packet/ipv6.py
+++ b/ryu/lib/packet/ipv6.py
@@ -36,6 +36,8 @@ class ipv6(packet_base.PacketBase):
     IPv6 addresses are represented as a string like 'ff02::1'.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|p{30em}|l|
+
     ============== ======================================== ==================
     Attribute      Description                              Example
     ============== ======================================== ==================
diff --git a/ryu/lib/packet/llc.py b/ryu/lib/packet/llc.py
index 085b2d5..2a0926c 100644
--- a/ryu/lib/packet/llc.py
+++ b/ryu/lib/packet/llc.py
@@ -104,6 +104,8 @@ class llc(packet_base.PacketBase):
     order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|L|
+
     =============== ===============================================
     Attribute       Description
     =============== ===============================================
diff --git a/ryu/lib/packet/slow.py b/ryu/lib/packet/slow.py
index 822deea..5ace157 100644
--- a/ryu/lib/packet/slow.py
+++ b/ryu/lib/packet/slow.py
@@ -88,53 +88,57 @@ class lacp(packet_base.PacketBase):
     | Version Number                                 | 1      |
     +------------+-----------------------------------+--------+
     | TLV        | TLV_type = Actor Information      | 1      |
-    | Actor      +-----------------------------------+--------+
+    | Actor      |                                   |        |
+    +------------+-----------------------------------+--------+
     |            | Actor_Information_Length = 20     | 1      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Actor_System_Priority             | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Actor_System                      | 6      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Actor_Key                         | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Actor_Port_Priority               | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Actor_Port                        | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Actor_State                       | 1      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Reserved                          | 3      |
     +------------+-----------------------------------+--------+
     | TLV        | TLV_type = Partner Information    | 1      |
-    | Partner    +-----------------------------------+--------+
+    | Partner    |                                   |        |
+    +------------+-----------------------------------+--------+
     |            | Partner_Information_Length = 20   | 1      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Partner_System_Priority           | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Partner_System                    | 6      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Partner_Key                       | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Partner_Port_Priority             | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Partner_Port                      | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Partner_State                     | 1      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Reserved                          | 3      |
     +------------+-----------------------------------+--------+
     | TLV        | TLV_type = Collector Information  | 1      |
-    | Collector  +-----------------------------------+--------+
+    | Collector  |                                   |        |
+    +------------+-----------------------------------+--------+
     |            | Collector_Information_Length = 16 | 1      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Collector_Max_Delay               | 2      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Reserved                          | 12     |
     +------------+-----------------------------------+--------+
     | TLV        | TLV_type = Terminator             | 1      |
-    | Terminator +-----------------------------------+--------+
+    | Terminator |                                   |        |
+    +------------+-----------------------------------+--------+
     |            | Terminator_Length = 0             | 1      |
-    |            +-----------------------------------+--------+
+    +------------+-----------------------------------+--------+
     |            | Reserved                          | 50     |
     +------------+-----------------------------------+--------+
 
@@ -187,6 +191,8 @@ class lacp(packet_base.PacketBase):
     order.
     __init__ takes the correspondig args in this order.
 
+    .. tabularcolumns:: |l|L|
+
     =============================== ====================================
     Attribute                       Description
     =============================== ====================================
@@ -209,60 +215,74 @@ class lacp(packet_base.PacketBase):
 
     actor_state_activity            .. _lacp_activity:
 
-                                    | about the activity control value
-                                      with regard to this link.
-                                    | LACP_STATE_ACTIVE(1)
-                                    | LACP_STATE_PASSIVE(0)
+                                    about the activity control value
+                                    with regard to this link.
+
+                                    LACP_STATE_ACTIVE(1)
+
+                                    LACP_STATE_PASSIVE(0)
 
     actor_state_timeout             .. _lacp_timeout:
 
-                                    | about the timeout control value
-                                      with regard to this link.
-                                    | LACP_STATE_SHORT_TIMEOUT(1)
-                                    | LACP_STATE_LONG_TIMEOUT(0)
+                                    about the timeout control value
+                                    with regard to this link.
+
+                                    LACP_STATE_SHORT_TIMEOUT(1)
+
+                                    LACP_STATE_LONG_TIMEOUT(0)
 
     actor_state_aggregation         .. _lacp_aggregation:
 
-                                    | about how the system regards this
-                                      link from the point of view of the
-                                      aggregation.
-                                    | LACP_STATE_AGGREGATEABLE(1)
-                                    | LACP_STATE_INDIVIDUAL(0)
+                                    about how the system regards this
+                                    link from the point of view of the
+                                    aggregation.
+
+                                    LACP_STATE_AGGREGATEABLE(1)
+
+                                    LACP_STATE_INDIVIDUAL(0)
 
     actor_state_synchronization     .. _lacp_synchronization:
 
-                                    | about how the system regards this
-                                      link from the point of view of the
-                                      synchronization.
-                                    | LACP_STATE_IN_SYNC(1)
-                                    | LACP_STATE_OUT_OF_SYNC(0)
+                                    about how the system regards this
+                                    link from the point of view of the
+                                    synchronization.
+
+                                    LACP_STATE_IN_SYNC(1)
+
+                                    LACP_STATE_OUT_OF_SYNC(0)
 
     actor_state_collecting          .. _lacp_collecting:
 
-                                    | about collecting of incoming
-                                      frames.
-                                    | LACP_STATE_COLLECTING_ENABLED(1)
-                                    | LACP_STATE_COLLECTING_DISABLED(0)
+                                    about collecting of incoming frames.
+
+                                    LACP_STATE_COLLECTING_ENABLED(1)
+
+                                    LACP_STATE_COLLECTING_DISABLED(0)
 
     actor_state_distributing        .. _lacp_distributing:
 
-                                    | about distributing of outgoing
-                                      frames.
-                                    | LACP_STATE_DISTRIBUTING_ENABLED(1)
-                                    | LACP_STATE_DISTRIBUTING_DISABLED(0)
+                                    about distributing of outgoing frames.
+
+                                    LACP_STATE_DISTRIBUTING_ENABLED(1)
+
+                                    LACP_STATE_DISTRIBUTING_DISABLED(0)
 
     actor_state_defaulted           .. _lacp_defaulted:
 
-                                    | about the Partner information
-                                      which the the Actor use.
-                                    | LACP_STATE_DEFAULTED_PARTNER(1)
-                                    | LACP_STATE_OPERATIONAL_PARTNER(0)
+                                    about the Partner information
+                                    which the the Actor use.
+
+                                    LACP_STATE_DEFAULTED_PARTNER(1)
+
+                                    LACP_STATE_OPERATIONAL_PARTNER(0)
 
     actor_state_expired             .. _lacp_expired:
 
-                                    | about the state of the Actor.
-                                    | LACP_STATE_EXPIRED(1)
-                                    | LACP_STATE_NOT_EXPIRED(0)
+                                    about the state of the Actor.
+
+                                    LACP_STATE_EXPIRED(1)
+
+                                    LACP_STATE_NOT_EXPIRED(0)
 
     partner_system_priority         The priority assigned to the
                                     Partner System.
-- 
1.7.9.5


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to