From d2096454fb0dd69b7b678d1e546e31f42d3be031 Mon Sep 17 00:00:00 2001 From: John O Loughlin Date: Wed, 5 Dec 2018 15:57:32 +0000 Subject: Allow testcases to be configured over cli Add options for droprate and frame_rate for agnostic vnf JIRA: YARDSTICK-1554 Change-Id: I0e9eb844a96b9d8af85fc3af750c56e43fea52b8 Signed-off-by: John O Loughlin Signed-off-by: Myron Sosyak --- samples/vnf_samples/traffic_profiles/ipv4_throughput.yaml | 5 +++-- samples/vnf_samples/traffic_profiles/ixia_ipv4_latency.yaml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'samples/vnf_samples/traffic_profiles') diff --git a/samples/vnf_samples/traffic_profiles/ipv4_throughput.yaml b/samples/vnf_samples/traffic_profiles/ipv4_throughput.yaml index 194bcd978..51c58962f 100644 --- a/samples/vnf_samples/traffic_profiles/ipv4_throughput.yaml +++ b/samples/vnf_samples/traffic_profiles/ipv4_throughput.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2016-2017 Intel Corporation +# Copyright (c) 2016-2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,6 +33,7 @@ # the profile defines a public and private side to make limited traffic correlation # between private and public side same way as it is made by IXIA solution. # +{% set frame_rate = get(extra_args, 'frame_rate' or 100 ) %} schema: "nsb:traffic_profile:0.1" # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator @@ -41,7 +42,7 @@ name: rfc2544 description: Traffic profile to run RFC2544 latency traffic_profile: traffic_type : RFC2544Profile # defines traffic behavior - constant or look for highest possible throughput - frame_rate : 100 # pc of linerate + frame_rate : {{ frame_rate }} # pc of linerate duration: {{ duration }} enable_latency: False diff --git a/samples/vnf_samples/traffic_profiles/ixia_ipv4_latency.yaml b/samples/vnf_samples/traffic_profiles/ixia_ipv4_latency.yaml index a6a36e02c..1ecb2cb2e 100644 --- a/samples/vnf_samples/traffic_profiles/ixia_ipv4_latency.yaml +++ b/samples/vnf_samples/traffic_profiles/ixia_ipv4_latency.yaml @@ -19,6 +19,7 @@ # the profile defines a public and private side to make limited traffic correlation # between private and public side same way as it is made by IXIA solution. # +{% set frame_rate = get(extra_args, 'frame_rate' or '100%' ) %} schema: "nsb:traffic_profile:0.1" # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator @@ -27,7 +28,7 @@ name: rfc2544 description: Traffic profile to run RFC2544 latency traffic_profile: traffic_type : IXIARFC2544Profile # defines traffic behavior - constant or look for highest possible throughput - frame_rate : 100% # pc of linerate + frame_rate : {{ frame_rate }} # pc of linerate duration: {{ duration }} enable_latency: True -- cgit 1.2.3-korg