diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-10-12 15:44:59 -0700 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-10-13 13:59:38 -0700 |
commit | 82d674d803db7e880fe413c115444640836ae5e7 (patch) | |
tree | 54177d80104712d27d305db7017cc841ce93ae31 | |
parent | fbd7a64782e557477aa01859b7876e0e53de2a6f (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.py | 6 |
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 = {} |