From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw0635.ocn.ad.jp (mogw0635.ocn.ad.jp [153.149.228.36]) by dpdk.org (Postfix) with ESMTP id CD4001E20 for ; Mon, 12 Mar 2018 06:35:39 +0100 (CET) Received: from mf-smf-ucb030c3 (mf-smf-ucb030c3.ocn.ad.jp [153.153.66.199]) by mogw0635.ocn.ad.jp (Postfix) with ESMTP id 0B738118023C; Mon, 12 Mar 2018 14:35:38 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb023 ([153.149.142.86]) by mf-smf-ucb030c3 with ESMTP id vG7Se5d0x6Y6hvG7VeYVIf; Mon, 12 Mar 2018 14:35:38 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.165]) by ntt.pod01.mv-mta-ucb023 with id Ltbd1x00A3akymp01tbdNY; Mon, 12 Mar 2018 05:35:37 +0000 Received: from linaloe.flets-east.jp (sp1-66-103-93.msc.spmode.ne.jp [1.66.103.93]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Mon, 12 Mar 2018 14:35:37 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com Cc: Yasufumi Ogawa Date: Mon, 12 Mar 2018 14:35:20 +0900 Message-Id: <1520832924-28387-6-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520832924-28387-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <8b08be87-6b64-8a4a-53e0-29269011d81c@lab.ntt.co.jp> <1520832924-28387-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> Subject: [spp] [PATCH 5/9] controller: add delimiter for topo command 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: Mon, 12 Mar 2018 05:35:40 -0000 From: Yasufumi Ogawa Resource ID consists of resource type and ID separated with delimiter ':', for instance, 'phy:0'. This delimiter causes a parse error in topo command because graphviz does not support ':' as a valid character for node ID. If ':' is included in node ID, graphviz outputs an imcomplete graph. To avoid this problem, replace ':' with other valid character for node IDs while labels displayed in the graph are not replaced. This update add definitions for charactors of delimiter and label in 'spp_common.py'. Delimiter ':' is replaced with label charactor '_' while graphviz script is generated. Signed-off-by: Yasufumi Ogawa --- src/controller/spp_common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/spp_common.py b/src/controller/spp_common.py index 59ba504..b1ab60f 100644 --- a/src/controller/spp_common.py +++ b/src/controller/spp_common.py @@ -33,6 +33,9 @@ REMOTE_COMMAND = "RCMD" RCMD_EXECUTE_QUEUE = Queue() RCMD_RESULT_QUEUE = Queue() +delim_node = '_' +delim_label = ':' + class GrowingList(list): """Growing List -- 2.7.4