Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 0/4] Change format of sec status to JSON
@ 2018-10-04  5:59 ogawa.yasufumi
  2018-10-04  5:59 ` [spp] [PATCH 1/4] shared: change sec status to JSON format ogawa.yasufumi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ogawa.yasufumi @ 2018-10-04  5:59 UTC (permalink / raw)
  To: spp, ferruh.yigit, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Spp_nfv or spp_vm returns its status as a YAML-like format for
simplicity and requires clients to parse the response. It is better the
format to parse if it is standardized format.

This update is to change the response to JSON format from spp_nfv and
spp_vm.

  {
    "status": "running",
    "ports": [
      {"src":"phy:0","dst": "ring:0"},
      {"src":"ring:0","dst": "null"}
    ]
  }

SPP controller is also updated to parse the new format.

In shared/common.c and shared/common.h, function retrieving the status
is changed from print_active_port() to get_sec_status_json() to return
not only ports info but also whole of info including running status.

Yasufumi Ogawa (4):
  shared: change sec status to JSON format
  spp_nfv: update retrieving status
  spp_vm: update retrieving status
  controller: update for parsing JSON status

 src/controller/shell.py | 50 ++++++++++-------------------
 src/nfv/nfv.c           | 10 +++---
 src/shared/common.c     | 84 +++++++++++++++++++++++++++++--------------------
 src/shared/common.h     |  2 +-
 src/vm/main.c           | 10 +++---
 5 files changed, 77 insertions(+), 79 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-04  5:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04  5:59 [spp] [PATCH 0/4] Change format of sec status to JSON ogawa.yasufumi
2018-10-04  5:59 ` [spp] [PATCH 1/4] shared: change sec status to JSON format ogawa.yasufumi
2018-10-04  5:59 ` [spp] [PATCH 2/4] spp_nfv: update retrieving status ogawa.yasufumi
2018-10-04  5:59 ` [spp] [PATCH 3/4] spp_vm: " ogawa.yasufumi
2018-10-04  5:59 ` [spp] [PATCH 4/4] controller: update for parsing JSON status 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).