* [spp] [PATCH] spp-ctl: fix bug of adding pcap and nullpmd PMDs
@ 2018-11-15 14:00 ogawa.yasufumi
0 siblings, 0 replies; only message in thread
From: ogawa.yasufumi @ 2018-11-15 14:00 UTC (permalink / raw)
To: ferruh.yigit, spp, ogawa.yasufumi
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
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 <ogawa.yasufumi@lab.ntt.co.jp>
Reported-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-15 14:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-15 14:00 [spp] [PATCH] spp-ctl: fix bug of adding pcap and nullpmd PMDs 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).