summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/console/trex_tui.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/console/trex_tui.py')
-rw-r--r--scripts/automation/trex_control_plane/console/trex_tui.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/console/trex_tui.py b/scripts/automation/trex_control_plane/console/trex_tui.py
index dbbac02b..9e66a984 100644
--- a/scripts/automation/trex_control_plane/console/trex_tui.py
+++ b/scripts/automation/trex_control_plane/console/trex_tui.py
@@ -71,8 +71,7 @@ class TrexTUIDashBoard(TrexTUIPanel):
allowed['c'] = self.key_actions['c']
- # thats it for read only
- if self.stateless_client.is_read_only():
+ if self.stateless_client.is_all_ports_acquired():
return allowed
if len(self.stateless_client.get_transmitting_ports()) > 0:
@@ -179,8 +178,7 @@ class TrexTUIPort(TrexTUIPanel):
allowed['c'] = self.key_actions['c']
- # thats it for read only
- if self.stateless_client.is_read_only():
+ if self.stateless_client.is_all_ports_acquired():
return allowed
if self.port.state == self.port.STATE_TX: