diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-03-01 14:02:17 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-03-01 14:02:17 +0200 |
commit | 42c621b92fca9c9ef916ce9896aecea0290ce2aa (patch) | |
tree | 0969fe4150ed83b8fa2261c390ac19ec16c63ba3 /scripts/automation | |
parent | 4dc464d004f0dffe1381b149a7ac36508e1b4234 (diff) |
add stream name
Diffstat (limited to 'scripts/automation')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 4 |
1 files changed, 4 insertions, 0 deletions
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() |