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-11-08 19:29:05 +0200
committerimarom <imarom@cisco.com>2016-11-08 19:29:05 +0200
commitd09b123992f990a6c219dd47707cc703fe9055b5 (patch)
tree7aff76ee53dc5617f40a12f9cd177d3883cec5e6 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py
parentf9a0c5e2e1e1135cb0c0e6e192565e5b100c5a41 (diff)
RX queue - ARP request working
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.py28
1 files changed, 17 insertions, 11 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 94745d15..96c5e832 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
@@ -546,7 +546,24 @@ class Port(object):
return self.ok()
+ @owned
+ def get_rx_queue_pkts (self):
+ params = {"handler": self.handler,
+ "port_id": self.port_id}
+
+ rc = self.transmit("get_rx_queue_pkts", params)
+ if rc.bad():
+ return self.err(rc.err())
+ pkts = rc.data()['pkts']
+
+ # decode the packets
+ for i in range(len(pkts)):
+ pkts[i] = base64.b64decode(pkts[i])
+
+ return pkts
+
+
@owned
def pause (self):
@@ -640,17 +657,6 @@ class Port(object):
return self.ok()
- @owned
- def get_rx_sw_pkts (self):
- params = {"handler": self.handler,
- "port_id": self.port_id}
-
- rc = self.transmit("get_rx_sw_pkts", params)
- if rc.bad():
- return self.err(rc.err())
-
- return self.ok()
-
@writeable
def push_remote (self, pcap_filename, ipg_usec, speedup, count, duration, is_dual, slave_handler):