* [spp] [PATCH] docs: add primary status in spp-ctl APIs
@ 2018-10-09 10:54 ogawa.yasufumi
0 siblings, 0 replies; only message in thread
From: ogawa.yasufumi @ 2018-10-09 10:54 UTC (permalink / raw)
To: spp, ferruh.yigit, ogawa.yasufumi
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Add response parameters and its example of status of spp_primary in the
API reference.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
docs/guides/spp-ctl/api-reference.rst | 110 +++++++++++++++++++++++++++++++++-
1 file changed, 108 insertions(+), 2 deletions(-)
diff --git a/docs/guides/spp-ctl/api-reference.rst b/docs/guides/spp-ctl/api-reference.rst
index 23bc8db..3ae90fd 100644
--- a/docs/guides/spp-ctl/api-reference.rst
+++ b/docs/guides/spp-ctl/api-reference.rst
@@ -125,8 +125,114 @@ Request example
Response
^^^^^^^^
-There is no data at the moment. The statistical information will be returned
-when ``spp_primary`` implements it.
+.. _table_spp_ctl_primary_status:
+
+.. table:: Response params of primary status.
+
+ +------------+-------+-------------------------------------------+
+ | Name | Type | Description |
+ | | | |
+ +============+=======+===========================================+
+ | phy_ports | array | An array of statistics of physical ports. |
+ +------------+-------+-------------------------------------------+
+ | ring_ports | array | An array of statistics of ring ports. |
+ +------------+-------+-------------------------------------------+
+
+Physical port object.
+
+.. _table_spp_ctl_primary_status_phy:
+
+.. table:: Attributes of physical port of primary status.
+
+ +---------+---------+-----------------------------------------------------+
+ | Name | Type | Description |
+ | | | |
+ +=========+=========+=====================================================+
+ | id | integer | Port ID of the physical port. |
+ +---------+---------+-----------------------------------------------------+
+ | rx | integer | The total number of received packets. |
+ +---------+---------+-----------------------------------------------------+
+ | tx | integer | The total number of transferred packets. |
+ +---------+---------+-----------------------------------------------------+
+ | tx_drop | integer | The total number of dropped packets of transferred. |
+ +---------+---------+-----------------------------------------------------+
+ | eth | string | MAC address of the port. |
+ +---------+---------+-----------------------------------------------------+
+
+Ring port object.
+
+.. _table_spp_ctl_primary_status_ring:
+
+.. table:: Attributes of ring port of primary status.
+
+ +---------+---------+-----------------------------------------------------+
+ | Name | Type | Description |
+ | | | |
+ +=========+=========+=====================================================+
+ | id | integer | Port ID of the ring port. |
+ +---------+---------+-----------------------------------------------------+
+ | rx | integer | The total number of received packets. |
+ +---------+---------+-----------------------------------------------------+
+ | rx_drop | integer | The total number of dropped packets of received. |
+ +---------+---------+-----------------------------------------------------+
+ | tx | integer | The total number of transferred packets. |
+ +---------+---------+-----------------------------------------------------+
+ | tx_drop | integer | The total number of dropped packets of transferred. |
+ +---------+---------+-----------------------------------------------------+
+
+Response example
+^^^^^^^^^^^^^^^^
+
+.. code-block:: json
+
+ {
+ "phy_ports": [
+ {
+ "id": 0,
+ "rx": 0,
+ "tx": 0,
+ "tx_drop": 0,
+ "eth": "56:48:4f:53:54:00"
+ },
+ {
+ "id": 1,
+ "rx": 0,
+ "tx": 0,
+ "tx_drop": 0,
+ "eth": "56:48:4f:53:54:01"
+ }
+ ],
+ "ring_ports": [
+ {
+ "id": 0,
+ "rx": 0,
+ "rx_drop": 0,
+ "tx": 0,
+ "tx_drop": 0
+ },
+ {
+ "id": 1,
+ "rx": 0,
+ "rx_drop": 0,
+ "tx": 0,
+ "tx_drop": 0
+ },
+ {
+ "id": 2,
+ "rx": 0,
+ "rx_drop": 0,
+ "tx": 0,
+ "tx_drop": 0
+ },
+ {
+ "id": 3,
+ "rx": 0,
+ "rx_drop": 0,
+ "tx": 0,
+ "tx_drop": 0
+ }
+ ]
+ }
DELETE /v1/primary/status
--
2.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-09 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-09 10:54 [spp] [PATCH] docs: add primary status in spp-ctl APIs ogawa.yasufumi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).