diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-13 10:07:01 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-13 10:07:01 +0200 |
commit | c8d1f318e2d322626e401c9599ba75006d2e8e6c (patch) | |
tree | 01d1c56141b66452dffe3beb7d168d88994b927c /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | |
parent | 129a116bd9af059fcb9029881f6bdce457c00577 (diff) |
stl console: add "readonly" flag to connect
Change-Id: Iee3fc72efaa55cdbc457340b855982146167a859
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py index 412fcbe3..6f6e8bfd 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py @@ -3647,14 +3647,16 @@ class STLClient(object): parser = parsing_opts.gen_parser(self, "connect", self.connect_line.__doc__, - parsing_opts.FORCE) + parsing_opts.FORCE, + parsing_opts.READONLY) opts = parser.parse_args(line.split()) if not opts: return opts self.connect() - self.acquire(force = opts.force) + if not opts.readonly: + self.acquire(force = opts.force) return RC_OK() |