doc: sprinkle of12 json examples
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
32977c125e
commit
672db3d81a
@ -11,72 +11,225 @@ Handshake
|
|||||||
---------
|
---------
|
||||||
|
|
||||||
.. autoclass:: OFPFeaturesRequest
|
.. autoclass:: OFPFeaturesRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-5-ofp_features_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPSwitchFeatures
|
.. autoclass:: OFPSwitchFeatures
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-6-ofp_features_reply.packet.json
|
||||||
|
|
||||||
Switch Configuration
|
Switch Configuration
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
.. autoclass:: OFPSetConfig
|
.. autoclass:: OFPSetConfig
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-7-ofp_set_config.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGetConfigRequest
|
.. autoclass:: OFPGetConfigRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-8-ofp_get_config_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGetConfigReply
|
.. autoclass:: OFPGetConfigReply
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-9-ofp_get_config_reply.packet.json
|
||||||
|
|
||||||
Flow Table Configuration
|
Flow Table Configuration
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
.. autoclass:: OFPTableMod
|
.. autoclass:: OFPTableMod
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-23-ofp_table_mod.packet.json
|
||||||
|
|
||||||
Modify State Messages
|
Modify State Messages
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
.. autoclass:: OFPFlowMod
|
.. autoclass:: OFPFlowMod
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-3-ofp_flow_mod.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGroupMod
|
.. autoclass:: OFPGroupMod
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-21-ofp_group_mod.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPPortMod
|
.. autoclass:: OFPPortMod
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-22-ofp_port_mod.packet.json
|
||||||
|
|
||||||
Read State Messages
|
Read State Messages
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
.. autoclass:: OFPDescStatsRequest
|
.. autoclass:: OFPDescStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-24-ofp_desc_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPDescStats
|
.. autoclass:: OFPDescStats
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-0-ofp_desc_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPFlowStatsRequest
|
.. autoclass:: OFPFlowStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-11-ofp_flow_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPFlowStats
|
.. autoclass:: OFPFlowStats
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-12-ofp_flow_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPAggregateStatsRequest
|
.. autoclass:: OFPAggregateStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-25-ofp_aggregate_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPAggregateStatsReply
|
.. autoclass:: OFPAggregateStatsReply
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-26-ofp_aggregate_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPTableStatsRequest
|
.. autoclass:: OFPTableStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-27-ofp_table_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPTableStats
|
.. autoclass:: OFPTableStats
|
||||||
|
|
||||||
|
.. XXX commented out because it's too long
|
||||||
|
.. JSON Example:
|
||||||
|
..
|
||||||
|
.. .. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-28-ofp_table_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPPortStatsRequest
|
.. autoclass:: OFPPortStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-29-ofp_port_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPPortStats
|
.. autoclass:: OFPPortStats
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-30-ofp_port_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPQueueStatsRequest
|
.. autoclass:: OFPQueueStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-37-ofp_queue_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPQueueStats
|
.. autoclass:: OFPQueueStats
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-38-ofp_queue_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGroupStatsRequest
|
.. autoclass:: OFPGroupStatsRequest
|
||||||
.. autoclass:: OFPGroupStats
|
.. autoclass:: OFPGroupStats
|
||||||
.. autoclass:: OFPGroupDescStatsRequest
|
.. autoclass:: OFPGroupDescStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-33-ofp_group_desc_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGroupDescStats
|
.. autoclass:: OFPGroupDescStats
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-34-ofp_group_desc_stats_reply.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGroupFeaturesStatsRequest
|
.. autoclass:: OFPGroupFeaturesStatsRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-31-ofp_group_features_stats_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPGroupFeaturesStats
|
.. autoclass:: OFPGroupFeaturesStats
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-32-ofp_group_features_stats_reply.packet.json
|
||||||
|
|
||||||
Queue Configuration Messages
|
Queue Configuration Messages
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
.. autoclass:: OFPQueueGetConfigRequest
|
.. autoclass:: OFPQueueGetConfigRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-35-ofp_queue_get_config_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPQueueGetConfigReply
|
.. autoclass:: OFPQueueGetConfigReply
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-36-ofp_queue_get_config_reply.packet.json
|
||||||
|
|
||||||
Packet-Out Message
|
Packet-Out Message
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
.. autoclass:: OFPPacketOut
|
.. autoclass:: OFPPacketOut
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-1-ofp_packet_out.packet.json
|
||||||
|
|
||||||
Barrier Message
|
Barrier Message
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
.. autoclass:: OFPBarrierRequest
|
.. autoclass:: OFPBarrierRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-17-ofp_barrier_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPBarrierReply
|
.. autoclass:: OFPBarrierReply
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-18-ofp_barrier_reply.packet.json
|
||||||
|
|
||||||
Role Request Message
|
Role Request Message
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
.. autoclass:: OFPRoleRequest
|
.. autoclass:: OFPRoleRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-19-ofp_role_request.packet.json
|
||||||
|
|
||||||
.. autoclass:: OFPRoleReply
|
.. autoclass:: OFPRoleReply
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-20-ofp_role_reply.packet.json
|
||||||
|
|
||||||
|
|
||||||
Asynchronous Messages
|
Asynchronous Messages
|
||||||
=====================
|
=====================
|
||||||
@ -86,21 +239,37 @@ Packet-In Message
|
|||||||
|
|
||||||
.. autoclass:: OFPPacketIn
|
.. autoclass:: OFPPacketIn
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-4-ofp_packet_in.packet.json
|
||||||
|
|
||||||
Flow Removed Message
|
Flow Removed Message
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
.. autoclass:: OFPFlowRemoved
|
.. autoclass:: OFPFlowRemoved
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-40-ofp_flow_removed.packet.json
|
||||||
|
|
||||||
Port Status Message
|
Port Status Message
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
.. autoclass:: OFPPortStatus
|
.. autoclass:: OFPPortStatus
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-39-ofp_port_status.packet.json
|
||||||
|
|
||||||
Error Message
|
Error Message
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
.. autoclass:: OFPErrorMsg
|
.. autoclass:: OFPErrorMsg
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-15-ofp_error_msg.packet.json
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-41-ofp_error_msg_experimenter.packet.json
|
||||||
|
|
||||||
Symmetric Messages
|
Symmetric Messages
|
||||||
==================
|
==================
|
||||||
@ -110,21 +279,39 @@ Hello
|
|||||||
|
|
||||||
.. autoclass:: OFPHello
|
.. autoclass:: OFPHello
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-10-ofp_hello.packet.json
|
||||||
|
|
||||||
Echo Request
|
Echo Request
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. autoclass:: OFPEchoRequest
|
.. autoclass:: OFPEchoRequest
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-13-ofp_echo_request.packet.json
|
||||||
|
|
||||||
|
|
||||||
Echo Reply
|
Echo Reply
|
||||||
----------
|
----------
|
||||||
|
|
||||||
.. autoclass:: OFPEchoReply
|
.. autoclass:: OFPEchoReply
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-14-ofp_echo_reply.packet.json
|
||||||
|
|
||||||
|
|
||||||
Experimenter
|
Experimenter
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. autoclass:: OFPExperimenter
|
.. autoclass:: OFPExperimenter
|
||||||
|
|
||||||
|
JSON Example:
|
||||||
|
|
||||||
|
.. literalinclude:: ../../ryu/tests/unit/ofproto/json/of12/3-16-ofp_experimenter.packet.json
|
||||||
|
|
||||||
|
|
||||||
Flow Match Structure
|
Flow Match Structure
|
||||||
====================
|
====================
|
||||||
|
Loading…
Reference in New Issue
Block a user