diff options
author | Maros Ondrejicka <mondreji@cisco.com> | 2023-02-23 13:19:15 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-02-27 17:26:41 +0000 |
commit | 40cba405c5c06a3dc086a55143cb3ffd1094597e (patch) | |
tree | 0263e3834a316d73863b1a6cc2da9beac916ac45 /extras/hs-test/http_test.go | |
parent | 9cb3e15c9f5b0eed296c3517c6475bd17a33441e (diff) |
hs-test: refactor netconfig
This joins separate representations of veth and tap interfaces
into a single struct. It removes the need for type interface
and embedding which simplifies the code.
Type: test
Signed-off-by: Maros Ondrejicka <mondreji@cisco.com>
Change-Id: I1b2c368bfe90a5bdfaaa9a5129c27d7d96f8fe3b
Diffstat (limited to 'extras/hs-test/http_test.go')
-rw-r--r-- | extras/hs-test/http_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hs-test/http_test.go b/extras/hs-test/http_test.go index 93705b22b88..96985be1ca7 100644 --- a/extras/hs-test/http_test.go +++ b/extras/hs-test/http_test.go @@ -51,7 +51,7 @@ func (s *NoTopoSuite) TestNginxAsServer() { err := vpp.waitForApp("-app", 5) s.assertNil(err) - serverAddress := s.netInterfaces[tapNameVpp].IP4AddressString() + serverAddress := s.netInterfaces[tapInterfaceName].Peer().IP4AddressString() defer func() { os.Remove(query) }() go startWget(finished, serverAddress, "80", query, "") @@ -64,7 +64,7 @@ func runNginxPerf(s *NoTopoSuite, mode, ab_or_wrk string) error { var args []string var exeName string - serverAddress := s.netInterfaces[tapNameVpp].IP4AddressString() + serverAddress := s.netInterfaces[tapInterfaceName].Peer().IP4AddressString() if ab_or_wrk == "ab" { args = []string{"-n", fmt.Sprintf("%d", nRequests), "-c", |