summaryrefslogtreecommitdiffstats
path: root/scripts/stl
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-06-01 17:00:14 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-06-01 17:00:14 +0300
commit9f2cbf6d028aed1bc471b27b61c928c82b36ac9a (patch)
tree017aaee470c4e978358e83464e5b8b3449e1ca80 /scripts/stl
parent92b58ef2f1840dd26be981342f08482d4b321b24 (diff)
fix latency profile to be able to run on all interfaces
Diffstat (limited to 'scripts/stl')
-rw-r--r--scripts/stl/flow_stats_latency.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/stl/flow_stats_latency.py b/scripts/stl/flow_stats_latency.py
index 334406e5..e1541272 100644
--- a/scripts/stl/flow_stats_latency.py
+++ b/scripts/stl/flow_stats_latency.py
@@ -9,11 +9,11 @@ class STLS1(object):
def get_streams (self, direction = 0, **kwargs):
return [STLStream(packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_64B_no_crc.pcap")), # path relative to pwd
mode = STLTXCont(pps=1000),
- flow_stats = STLFlowLatencyStats(pg_id = 7)),
+ flow_stats = STLFlowLatencyStats(pg_id = 1 + kwargs['port_id'])),
STLStream(packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_594B_no_crc.pcap")), # path relative to pwd
mode = STLTXCont(pps=5000),
- flow_stats = STLFlowLatencyStats(pg_id = 12))
+ flow_stats = STLFlowLatencyStats(pg_id = 50 + kwargs['port_id']))
]