aboutsummaryrefslogtreecommitdiffstats
path: root/conf/__init__.py
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2015-07-30 13:44:36 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-08-26 08:16:32 +0000
commitf426da4469d88fc520fa7aa96576b7ca8096e4d0 (patch)
tree910033827982f8d5e576ecc6b7aaf5ea48e3d087 /conf/__init__.py
parent753bce9a5fd3a4d1ae2e2c7268f689bd81b970bd (diff)
bug_fix: process pkt_size/duration from cli
Refactor rfc25444_duration to duration and update the --test-params help to show the type of parameters that can be set from the cli. Also configure pkt_sizes so that it can be modified from the CLI. Also fixes the tcl script to configure framesize properly (to the value selected and not the default 64b). JIRA: VSPERF-27 Change-Id: I76dcd824977a5f940cf7476090d2d2a3acca8160 Signed-off-by: Billy O'Mahony<billy.o.mahony@intel.com> Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Dino Madarang <dino.simeonx.madarang@intel.com>
Diffstat (limited to 'conf/__init__.py')
-rw-r--r--conf/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/__init__.py b/conf/__init__.py
index 0af47adb..46228235 100644
--- a/conf/__init__.py
+++ b/conf/__init__.py
@@ -49,6 +49,12 @@ class Settings(object):
# we can assume all uppercase keys are valid settings
super(Settings, self).__setattr__(name, value)
+ def setValue(self, name, value):
+ """Set a value
+ """
+ if name is not None and value is not None:
+ super(Settings, self).__setattr__(name, value)
+
def load_from_file(self, path):
"""Update ``settings`` with values found in module at ``path``.
"""