From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama50.ecl.ntt.co.jp (tama50.ecl.ntt.co.jp [129.60.39.147]) by dpdk.org (Postfix) with ESMTP id 7AE6F4F9B for ; Thu, 15 Nov 2018 15:02:17 +0100 (CET) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wAFE2GjX021668; Thu, 15 Nov 2018 23:02:16 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 208D6EA80FE; Thu, 15 Nov 2018 23:02:16 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 09F9CEA80BA; Thu, 15 Nov 2018 23:02:16 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 15 Nov 2018 23:00:05 +0900 Message-Id: <1542290405-25029-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 X-TM-AS-MML: disable Subject: [spp] [PATCH] spp-ctl: fix bug of adding pcap and nullpmd PMDs 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, 15 Nov 2018 14:02:19 -0000 From: Yasufumi Ogawa Spp-ctl does not support to add pcap and nullpmd PMDs of spp_nfv. It cause an error if the PMD is added to spp_nfv because spp-ctl does not have them in the list of PMDs for checking. This update is to add pcap and nullpmd to the list. Signed-off-by: Yasufumi Ogawa Reported-by: Hideyuki Yamashita --- src/spp-ctl/spp_webapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spp-ctl/spp_webapi.py b/src/spp-ctl/spp_webapi.py index 49ef971..48cc1c4 100644 --- a/src/spp-ctl/spp_webapi.py +++ b/src/spp-ctl/spp_webapi.py @@ -50,7 +50,7 @@ class BaseHandler(bottle.Bottle): def _validate_port(self, port): try: if_type, if_num = port.split(":") - if if_type not in ["phy", "vhost", "ring"]: + if if_type not in ["phy", "vhost", "ring", "pcap", "nullpmd"]: raise int(if_num) except: -- 2.7.4