summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/examples
diff options
context:
space:
mode:
authorDan Klein <danklein10@gmail.com>2015-07-15 10:00:39 +0300
committerDan Klein <danklein10@gmail.com>2015-07-15 10:00:39 +0300
commitf66c121432494744adc75c7df0224326ab3aab4d (patch)
tree10a0b775003d36f29d05c3271e089e99d1efe61b /scripts/automation/trex_control_plane/examples
parentbe51c10fce534bb7d90aca04ef635b189b39a3a1 (diff)
Fixed client interactive example of the Python API
Diffstat (limited to 'scripts/automation/trex_control_plane/examples')
-rwxr-xr-xscripts/automation/trex_control_plane/examples/client_interactive_example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/examples/client_interactive_example.py b/scripts/automation/trex_control_plane/examples/client_interactive_example.py
index e8d358a9..d40d08c6 100755
--- a/scripts/automation/trex_control_plane/examples/client_interactive_example.py
+++ b/scripts/automation/trex_control_plane/examples/client_interactive_example.py
@@ -30,7 +30,7 @@ class InteractiveTRexClient(cmd.Cmd):
d = 100,
f = 'avl/sfr_delay_10_1g.yaml',
l = 1000)
- self.run_params = self.DEFAULT_RUN_PARAMS
+ self.run_params = dict(self.DEFAULT_RUN_PARAMS)
self.decoder = json.JSONDecoder()
@@ -112,7 +112,7 @@ class InteractiveTRexClient(cmd.Cmd):
def do_restore_run_default (self, line):
"""Restores original T-Rex running configuration"""
- self.run_params = self.DEFAULT_RUN_PARAMS
+ self.run_params = dict(self.DEFAULT_RUN_PARAMS)
print termstyle.green("*** End of restoring default run parameters ***")
def do_run_until_finish (self, sample_rate):