From: Hanoh Haim Date: Tue, 1 Mar 2016 12:02:17 +0000 (+0200) Subject: add stream name X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=42c621b92fca9c9ef916ce9896aecea0290ce2aa;p=trex.git add stream name --- 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()