diff options
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 | 9 |
1 files changed, 7 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 f86fff26..79ed3a36 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 @@ -1396,8 +1396,13 @@ class STLClient(object): def get_resolvable_ports (self): return [port_id for port_id, port_obj in self.ports.items() - if port_obj.is_acquired() and port_obj.get_dst_addr()['ipv4'] is not None] - + if port_obj.is_acquired() and port_obj.is_l3_mode()] + + def get_resolved_ports (self): + return [port_id + for port_id, port_obj in self.ports.items() + if port_obj.is_acquired() and port_obj.is_resolved()] + def get_service_enabled_ports(self): return [port_id |