summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client_utils
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-12-24 07:42:21 -0500
committerimarom <imarom@cisco.com>2015-12-24 07:42:51 -0500
commitba297ed1bfdfbf61bc99fe7f75deb800b570c58e (patch)
tree44084f58079ae3f37b9b9b34c856fb84eaa078ff /scripts/automation/trex_control_plane/client_utils
parent3534ca500f9b2fce4a5e9a52f2df12e139501183 (diff)
some TUI tweaks
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils')
-rwxr-xr-xscripts/automation/trex_control_plane/client_utils/parsing_opts.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/parsing_opts.py b/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
index 6f9b4c6d..5cb06604 100755
--- a/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/client_utils/parsing_opts.py
@@ -70,7 +70,10 @@ def match_multiplier_common(val, strict_abs = True):
op = None
else:
match = re.match("^(\d+(\.\d+)?)(bps|kbps|mbps|gbps|pps|kpps|mpps|%?)([\+\-])?$", val)
- op = match.group(4)
+ if match:
+ op = match.group(4)
+ else:
+ op = None
result = {}