[spp] [PATCH] spp-ctl: fix bug of adding pcap and nullpmd PMDs
ogawa.yasufumi at lab.ntt.co.jp
ogawa.yasufumi at lab.ntt.co.jp
Thu Nov 15 15:00:05 CET 2018
From: Yasufumi Ogawa <ogawa.yasufumi at 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 at lab.ntt.co.jp>
Reported-by: Hideyuki Yamashita <yamashita.hideyuki at 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
More information about the spp
mailing list