aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-10-12 15:44:59 -0700
committerDeepak S <deepak.s@linux.intel.com>2017-10-12 18:05:48 -0700
commitcec583f7d42907710f63173ca416e33c382d3c75 (patch)
tree3ae10b28b73268674ff0a96eefaa07c6984dcdb1
parent3582056de8f3ed4b8f7ffaf710c3eebc4b0ac3f2 (diff)
Support to add multiple src/dst ports in flow
Change-Id: I888a6029efaad8308de8df6b6787dd46af5f1c55 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
-rw-r--r--yardstick/benchmark/scenarios/networking/vnf_generic.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/networking/vnf_generic.py b/yardstick/benchmark/scenarios/networking/vnf_generic.py
index 0fab45480..b94bfc9ab 100644
--- a/yardstick/benchmark/scenarios/networking/vnf_generic.py
+++ b/yardstick/benchmark/scenarios/networking/vnf_generic.py
@@ -190,6 +190,12 @@ class NetworkServiceTestCase(base.Scenario):
for index, publicip in enumerate(fflow.get("public_ip", [])):
flow["public_ip_{}".format(index)] = publicip
+ for index, src_port in enumerate(fflow.get("src_port", [])):
+ flow["src_port_{}".format(index)] = src_port
+
+ for index, dst_port in enumerate(fflow.get("dst_port", [])):
+ flow["dst_port_{}".format(index)] = dst_port
+
flow["count"] = fflow["count"]
except KeyError:
flow = {}