hs-test: fix nsim interface in TcpWithLoss tests 94/43494/1
authorMatus Fabian <[email protected]>
Tue, 29 Jul 2025 13:18:30 +0000 (09:18 -0400)
committerMatus Fabian <[email protected]>
Tue, 29 Jul 2025 13:18:30 +0000 (09:18 -0400)
Type: test

Change-Id: I94b3f052fa7a482083ae7459f1cfea067453c9b5
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/echo_test.go

index 24ebb6d..ee51054 100644 (file)
@@ -108,10 +108,10 @@ func TcpWithLossTest(s *VethsSuite) {
        clientVpp := s.Containers.ClientVpp.VppInstance
 
        // Add loss of packets with Network Delay Simulator
-       clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" +
-               " packet-size 1400 packets-per-drop 1000")
+       s.Log(clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" +
+               " packet-size 1400 packets-per-drop 1000"))
 
-       clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Server.Name())
+       s.Log(clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Client.Name()))
 
        // Do echo test from client-vpp container
        output := clientVpp.Vppctl("test echo client uri tcp://%s/%s verbose echo-bytes bytes 50m",
@@ -130,10 +130,10 @@ func TcpWithLoss6Test(s *Veths6Suite) {
        clientVpp := s.Containers.ClientVpp.VppInstance
 
        // Add loss of packets with Network Delay Simulator
-       clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" +
-               " packet-size 1400 packets-per-drop 1000")
+       s.Log(clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" +
+               " packet-size 1400 packets-per-drop 1000"))
 
-       clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Server.Name())
+       s.Log(clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Client.Name()))
 
        // Do echo test from client-vpp container
        output := clientVpp.Vppctl("test echo client uri tcp://%s/%s verbose echo-bytes bytes 50m",