diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-09-17 12:34:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-20 09:40:54 +0900 |
commit | bdbcfda2970de200bae2f87ac5de80c12ff01d97 (patch) | |
tree | 82cf1a0d9a6a4b3ba87b7e3d35f5ef72cfa07248 | |
parent | 7d37903c313c858e4daf96931caee6ae489f3fef (diff) |
document OFPTableFeaturesStatsRequest/OFPTableFeaturesStatsReply
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | doc/source/ofproto_v1_3_ref.rst | 7 | ||||
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 23 |
2 files changed, 30 insertions, 0 deletions
diff --git a/doc/source/ofproto_v1_3_ref.rst b/doc/source/ofproto_v1_3_ref.rst index d760234a..79f207b0 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 940f2d17..3bd7e147 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -4645,6 +4645,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): @@ -4666,6 +4673,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) |