Small fix for vppctl
Change-Id: I5d2668b3487d240e7d8c8a257e9a5607e2b314ec
Signed-off-by: Ed Warnicke <eaw@cisco.com>
diff --git a/vpp-api-test/scripts/vppctl b/vpp-api-test/scripts/vppctl
index 12b132c..c39ee00 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