From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bcmv-tmail01.ecl.ntt.co.jp (bcmv-tmail01.ecl.ntt.co.jp [124.146.185.148]) by dpdk.org (Postfix) with ESMTP id 5CFA45F36 for ; Thu, 4 Oct 2018 07:59:26 +0200 (CEST) Received: from bcmv-ns01.ecl.ntt.co.jp (bcmv-ns01.ecl.ntt.co.jp [129.60.83.123]) by bcmv-tmail01.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id w945xPW0008253; Thu, 4 Oct 2018 14:59:25 +0900 Received: from bcmv-ns01.ecl.ntt.co.jp (localhost [127.0.0.1]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 4E9CE129; Thu, 4 Oct 2018 14:59:25 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 2F2E010E; Thu, 4 Oct 2018 14:59:25 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 4 Oct 2018 14:59:14 +0900 Message-Id: <20181004055918.5922-1-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 X-TM-AS-MML: disable Subject: [spp] [PATCH 0/4] Change format of sec status to JSON X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2018 05:59:28 -0000 From: Yasufumi Ogawa 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