summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-21 14:25:16 +0200
committerimarom <imarom@cisco.com>2016-12-21 14:49:09 +0200
commitfff19c8c2faced0972601ca9956bb36a33aa6e87 (patch)
tree36a120e226f78ad974a7086bbd396d8d26131b41 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
parentbf7c614dc174697b416eb3dfad515cedb104028b (diff)
watchdog disable for time capability
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
index 37472cdb..3fe4c198 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
@@ -761,17 +761,11 @@ class Port(object):
# invalidates the current ARP
def invalidate_arp (self):
- dest = self.__attr['dest']
-
if not self.is_l3_mode():
return self.err('port is not configured with L3')
- self.set_l3_mode(self.get_src_addr()['ipv4'], self.get_dst_addr()['ipv4'])
+ return self.set_l3_mode(self.get_src_addr()['ipv4'], self.get_dst_addr()['ipv4'])
- if dest['type'] != 'mac':
- return self.set_attr(dest = dest['ipv4'])
- else:
- return self.ok()
def print_profile (self, mult, duration):