diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-06-25 20:51:31 -0400 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-06-27 15:45:15 +0000 |
commit | 44b0b07bc18555ecdf11b2b4c184bb88a9fa118f (patch) | |
tree | e830c8db94fd7c615c222efe9992cdc1615ede3d /test/vpp_pg_interface.py | |
parent | 08b8ce1d6cd4ad7d285e1febaa9810185906b027 (diff) |
tests: rename stream name in tests
PacketGenerator streams were named based on their sw_if_index but without
knowing that, it looked like it was paired with the interface instance value.
Reencode the name to encode the data in a clearer way.
20:48:12,859 CLI: packet-generator new pcap
/tmp/vpp-unittest-TestClassifierPBR-6DVQW2/pg0_in.pcap
source pg0 name pcap0-sw_if_index-1
Change-Id: I5b82193943fee0cf060900d73aaaaecca1247105
Type: style
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_pg_interface.py')
-rwxr-xr-x | test/vpp_pg_interface.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index 380c1fa2595..bd4ddaff58a 100755 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -103,7 +103,8 @@ class VppPGInterface(VppInterface): self._in_path = self.test.tempdir + "/" + self._in_file self._capture_cli = "packet-generator capture pg%u pcap %s" % ( self.pg_index, self.out_path) - self._cap_name = "pcap%u" % self.sw_if_index + self._cap_name = "pcap%u-sw_if_index-%s" % ( + self.pg_index, self.sw_if_index) self._input_cli = \ "packet-generator new pcap %s source pg%u name %s" % ( self.in_path, self.pg_index, self.cap_name) |