aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-03-08 11:55:50 +0100
committerFilip Tehlar <ftehlar@cisco.com>2023-03-08 12:08:07 +0100
commit1a66150f187e382b028a73f12d81c3617f8c91d7 (patch)
treec44bb27b7f91de371781a0f47a310fedb5108f00 /extras/hs-test
parent9abba11a9434e152f35a863de3e7631fe3a00070 (diff)
hs-test: add vppctl wrapper script
Type: test Add a helper wrapper script for vppctl called vppcli to vpp docker image with proper cli socket path. Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: I1a51aa54bc91c1c812698501a56401c525d498e8
Diffstat (limited to 'extras/hs-test')
-rw-r--r--extras/hs-test/vppinstance.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go
index c6771f697f8..89e67d0fac7 100644
--- a/extras/hs-test/vppinstance.go
+++ b/extras/hs-test/vppinstance.go
@@ -117,6 +117,12 @@ func (vpp *VppInstance) start() error {
startupFileName := vpp.getEtcDir() + "/startup.conf"
vpp.container.createFile(startupFileName, configContent)
+ // create wrapper script for vppctl with proper CLI socket path
+ cliContent := "#!/usr/bin/bash\nvppctl -s " + vpp.getRunDir() + "/cli.sock"
+ vppcliFileName := "/usr/bin/vppcli"
+ vpp.container.createFile(vppcliFileName, cliContent)
+ vpp.container.exec("chmod 0755 " + vppcliFileName)
+
if *IsVppDebug {
sig := make(chan os.Signal, 1)
signal.Notify(sig, syscall.SIGINT)