From f426da4469d88fc520fa7aa96576b7ca8096e4d0 Mon Sep 17 00:00:00 2001 From: Maryam Tahhan Date: Thu, 30 Jul 2015 13:44:36 +0100 Subject: 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 Signed-off-by: Maryam Tahhan Reviewed-by: Al Morton Reviewed-by: Dino Madarang --- conf/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'conf') 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``. """ -- cgit 1.2.3-korg