Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
doc/source/ofproto_v1_3_ref.rst | 7 +++++++
ryu/ofproto/ofproto_v1_3_parser.py | 23 +++++++++++++++++++++++
2 files changed, 30 insertions(+)
diff --git a/doc/source/ofproto_v1_3_ref.rst b/doc/source/ofproto_v1_3_ref.rst
index d760234..79f207b 100644
--- a/doc/source/ofproto_v1_3_ref.rst
+++ b/doc/source/ofproto_v1_3_ref.rst
@@ -230,6 +230,13 @@ Multipart Messages
.. literalinclude::
../../ryu/tests/unit/ofproto/json/of13/4-52-ofp_meter_features_reply.packet.json
+.. autoclass:: OFPTableFeaturesStatsRequest
+.. autoclass:: OFPTableFeaturesStatsReply
+
+ JSON Example:
+
+ .. literalinclude::
../../ryu/tests/unit/ofproto/json/of13/4-56-ofp_table_features_reply.packet.json
+
Queue Configuration Messages
----------------------------
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py
b/ryu/ofproto/ofproto_v1_3_parser.py
index 7158570..05107b4 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -4630,6 +4630,13 @@ class OFPTableFeaturesStats(StringifyMixin):
@_set_stats_type(ofproto_v1_3.OFPMP_TABLE_FEATURES, OFPTableFeaturesStats)
@_set_msg_type(ofproto_v1_3.OFPT_MULTIPART_REQUEST)
class OFPTableFeaturesStatsRequest(OFPMultipartRequest):
+ """
+ Table features statistics request message
+
+ The controller uses this message to query table features.
+
+ This message is currently unimplemented.
+ """
def __init__(self, datapath, flags, length, table_id, name,
metadata_match, metadata_write, config, max_entries,
properties, type_=None):
@@ -4651,6 +4658,22 @@ class OFPTableFeaturesStatsRequest(OFPMultipartRequest):
@_set_stats_type(ofproto_v1_3.OFPMP_TABLE_FEATURES, OFPTableFeaturesStats)
@_set_msg_type(ofproto_v1_3.OFPT_MULTIPART_REPLY)
class OFPTableFeaturesStatsReply(OFPMultipartReply):
+ """
+ Table features statistics reply message
+
+ The switch responds with this message to a table features statistics
+ request.
+
+ This implmentation is still incomplete.
+ Namely, this implementation does not parse ``properties`` list and
+ always reports it empty.
+
+ ================ ======================================================
+ Attribute Description
+ ================ ======================================================
+ body List of ``OFPTableFeaturesStats`` instance
+ ================ ======================================================
+ """
def __init__(self, datapath, type_=None, **kwargs):
super(OFPTableFeaturesStatsReply, self).__init__(datapath, **kwargs)
--
1.8.3.1
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel