From 42c621b92fca9c9ef916ce9896aecea0290ce2aa Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Tue, 1 Mar 2016 14:02:17 +0200 Subject: add stream name --- .../trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py index 24acd28b..b56d8708 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py @@ -301,6 +301,8 @@ class STLStream(object): return self.get_rate_from_field(self.fields['mode']['rate']) def to_pkt_dump (self): + if self.name: + print "Stream Name: ",self.name scapy_b = self.scapy_pkt_builder; if scapy_b and isinstance(scapy_b,CScapyTRexPktBuilder): scapy_b.to_pkt_dump() @@ -610,7 +612,9 @@ class STLProfile(object): def dump_as_pkt (self): cnt=0; for stream in self.streams: + print "=======================" print "Stream %d" % cnt + print "=======================" cnt = cnt +1 stream.to_pkt_dump() -- cgit