From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id 5ED953572 for ; Wed, 7 Nov 2018 04:12:07 +0100 (CET) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wA73C7fl031905; Wed, 7 Nov 2018 12:12:07 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id EE954EA8A02; Wed, 7 Nov 2018 12:12:06 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id E3AD7EA8A01; Wed, 7 Nov 2018 12:12:06 +0900 (JST) Received: from [IPv6:::1] (watercress.nslab.ecl.ntt.co.jp [129.60.13.73]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id DF1A04005EA; Wed, 7 Nov 2018 12:12:06 +0900 (JST) References: <20180823105442.74672-1-ogawa.yasufumi@lab.ntt.co.jp> <201811061118.wA6BIk7q014743@ccmail04.silk.ntt-tx.co.jp> <201811061138.wA6Bc0ZK022308@ccmail04.silk.ntt-tx.co.jp> From: Yasufumi Ogawa Message-ID: <350fce7e-a8e4-a224-a5b9-b1e378d9cd1c@lab.ntt.co.jp> Date: Wed, 7 Nov 2018 12:09:54 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <201811061138.wA6Bc0ZK022308@ccmail04.silk.ntt-tx.co.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Hideyuki Yamashita Cc: spp@dpdk.org, ferruh.yigit@intel.com X-TM-AS-MML: disable Subject: Re: [spp] Cannnot add pcap PMD and null PMD via spp.py 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: Wed, 07 Nov 2018 03:12:08 -0000 > Hello, > > I am testing spp through spp-ctl/spp.py. > > I encounter error when > - adding pcap PMD > - adding null PMD > though spp.py. > > When I look source code of spp_webapi.py, > it looks type is not defined for neither null PMD or pcap PMD. > > def _validate_port(self, port): > try: > if_type, if_num = port.split(":") > if if_type not in ["phy", "vhost", "ring"]: //problematic > raise > int(if_num) > except: > raise KeyInvalid('port', port) > > It is highly appreciated that someone provide resolution on this. Hi Hideyuki, Sorry for lack of covering features. I should add the PMDs you mentioned and I will update soon. Thanks > > Thanks in advance. > > BR, > Hideyuki Yamashita > NTT TechnoCross