diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2016-11-11 08:04:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-11 08:04:54 +0000 |
commit | 9f3fce18b414e10724549dbee8113c6bdfa2f5db (patch) | |
tree | ca0cef2a6ec1ee810332dbba7121e4bb006a20a7 /core/traffic_controller_rfc2544.py | |
parent | 131fd1cccc824371fa3b1e7a8477818a03fa1d35 (diff) | |
parent | eabc66eef336b3c47c366027b205d26db10a3c21 (diff) |
Merge "cli: Modify configuration via CLI"
Diffstat (limited to 'core/traffic_controller_rfc2544.py')
-rw-r--r-- | core/traffic_controller_rfc2544.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py index 874c3ae7..980205f6 100644 --- a/core/traffic_controller_rfc2544.py +++ b/core/traffic_controller_rfc2544.py @@ -15,7 +15,7 @@ """ from core.traffic_controller import TrafficController from core.results.results import IResults -from conf import get_test_param +from conf import settings class TrafficControllerRFC2544(TrafficController, IResults): @@ -32,7 +32,7 @@ class TrafficControllerRFC2544(TrafficController, IResults): """ super(TrafficControllerRFC2544, self).__init__(traffic_gen_class) self._type = 'rfc2544' - self._tests = int(get_test_param('rfc2544_tests', 1)) + self._tests = int(settings.getValue('TRAFFICGEN_RFC2544_TESTS')) def send_traffic(self, traffic): """See TrafficController for description @@ -85,4 +85,3 @@ class TrafficControllerRFC2544(TrafficController, IResults): result = self._traffic_gen_class.wait_rfc2544_throughput() result = self._append_results(result, packet_size) self._results.append(result) - |