diff options
author | Maryam Tahhan <maryam.tahhan@intel.com> | 2016-08-10 12:20:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-10 12:20:50 +0000 |
commit | ec78c5c7f8a9357e404b7207e626df97dd20efa9 (patch) | |
tree | 7a3f7141637a2197d314647db57a76d8b79616f4 /tools/pkt_gen/xena/xena_json.py | |
parent | 1dc40afad832bca427058380a629634aa3cb104c (diff) | |
parent | e4aca4273b3fa9ee022ceff138f2f694942db4e5 (diff) |
Merge "Xena_2544_tput_options: Add options for rfc 2544 testing"
Diffstat (limited to 'tools/pkt_gen/xena/xena_json.py')
-rw-r--r-- | tools/pkt_gen/xena/xena_json.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/pkt_gen/xena/xena_json.py b/tools/pkt_gen/xena/xena_json.py index 2a15a932..1ce7b46f 100644 --- a/tools/pkt_gen/xena/xena_json.py +++ b/tools/pkt_gen/xena/xena_json.py @@ -233,6 +233,22 @@ class XenaJSON(object): self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ 'Enabled'] = 'true' + def modify_2544_tput_options(self, initial_value, minimum_value, + maximum_value, value_resolution, + use_pass_threshhold, pass_threshhold): + self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ + 'RateIterationOptions']['InitialValue'] = initial_value + self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ + 'RateIterationOptions']['MinimumValue'] = minimum_value + self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ + 'RateIterationOptions']['MaximumValue'] = maximum_value + self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ + 'RateIterationOptions']['ValueResolution'] = value_resolution + self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ + 'RateIterationOptions']['UsePassThreshold'] = use_pass_threshhold + self.json_data['TestOptions']['TestTypeOptionMap']['Throughput'][ + 'RateIterationOptions']['PassThreshold'] = pass_threshhold + def set_chassis_info(self, hostname, pwd): """ Set the chassis info |