From b171392f75b2e2f9abb1834c84e752931afaace9 Mon Sep 17 00:00:00 2001 From: Deepak S Date: Thu, 31 Aug 2017 01:21:52 -0700 Subject: Adding support for updating the count/packetsize for given testcase Change-Id: I3ec1a6d3710d44df5ddac6bd8967d28ad58e8d33 Signed-off-by: Deepak S --- yardstick/benchmark/scenarios/networking/vnf_generic.py | 2 ++ yardstick/network_services/traffic_profile/ixia_rfc2544.py | 1 + 2 files changed, 3 insertions(+) (limited to 'yardstick') diff --git a/yardstick/benchmark/scenarios/networking/vnf_generic.py b/yardstick/benchmark/scenarios/networking/vnf_generic.py index aaf850c1d..f7b2915a2 100644 --- a/yardstick/benchmark/scenarios/networking/vnf_generic.py +++ b/yardstick/benchmark/scenarios/networking/vnf_generic.py @@ -177,6 +177,8 @@ class NetworkServiceTestCase(base.Scenario): for index, publicip in enumerate(fflow.get("publicip", [])): flow["public_ip{}".format(index)] = publicip + + flow["count"] = fflow["count"] except KeyError: flow = {} return {"flow": flow} diff --git a/yardstick/network_services/traffic_profile/ixia_rfc2544.py b/yardstick/network_services/traffic_profile/ixia_rfc2544.py index ba532b820..36a464e2f 100644 --- a/yardstick/network_services/traffic_profile/ixia_rfc2544.py +++ b/yardstick/network_services/traffic_profile/ixia_rfc2544.py @@ -61,6 +61,7 @@ class IXIARFC2544Profile(TrexProfile): traffic['outer_l3']['dstip4'] = dstip4.split("-")[0] traffic['outer_l3']['type'] = key + traffic['outer_l3']['count'] = value['outer_l3v4']['count'] # outer_l4 traffic['outer_l4'] = value['outer_l4'] index = index + 1 -- cgit 1.2.3-korg