summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/suite_ns_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/suite_ns_test.go')
-rw-r--r--extras/hs-test/suite_ns_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/hs-test/suite_ns_test.go b/extras/hs-test/suite_ns_test.go
index b32fec7e729..46d5bef92ad 100644
--- a/extras/hs-test/suite_ns_test.go
+++ b/extras/hs-test/suite_ns_test.go
@@ -1,7 +1,7 @@
package main
+// These correspond to names used in yaml config
const (
- // These correspond to names used in yaml config
clientInterface = "hclnvpp"
serverInterface = "hsrvvpp"
)
@@ -33,11 +33,11 @@ func (s *NsSuite) SetupTest() {
vpp, _ := container.newVppInstance(cpus, sessionConfig)
s.assertNil(vpp.start())
- idx, err := vpp.createAfPacket(s.netInterfaces[serverInterface])
+ idx, err := vpp.createAfPacket(s.getInterfaceByName(serverInterface))
s.assertNil(err, err)
s.assertNotEqual(0, idx)
- idx, err = vpp.createAfPacket(s.netInterfaces[clientInterface])
+ idx, err = vpp.createAfPacket(s.getInterfaceByName(clientInterface))
s.assertNil(err, err)
s.assertNotEqual(0, idx)