summaryrefslogtreecommitdiffstats
path: root/vpp-api-test/scripts/vppctl
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api-test/scripts/vppctl')
-rwxr-xr-xvpp-api-test/scripts/vppctl13
1 files changed, 7 insertions, 6 deletions
diff --git a/vpp-api-test/scripts/vppctl b/vpp-api-test/scripts/vppctl
index 12b132c9459..c39ee000965 100755
--- a/vpp-api-test/scripts/vppctl
+++ b/vpp-api-test/scripts/vppctl
@@ -1,13 +1,14 @@
#!/bin/bash
if [ $# -gt 0 ]; then
- echo exec ${@} | vpp_api_test | sed 's/vat# //g'
+ echo exec ${@} | vpe_api_test | sed 's/vat# //g'
else
echo -n "vpp# "
while read CMD; do
- if [ $CMD == "exit" ]; then
- exit
- fi
- echo exec $CMD | vpp_api_test | sed 's/vat# //g'
- echo -n "vpp# "
+ if [ "x$CMD" == "xexit" ]; then
+ exit
+ elif [ "x$CMD" != "x" ]; then
+ echo exec $CMD | vpe_api_test | sed 's/vat# //g'
+ fi
+ echo -n "vpp# "
done
fi