aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/scripts/vppctl
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2016-01-25 18:52:58 -0700
committerEd Warnicke <eaw@cisco.com>2016-01-26 09:57:14 -0700
commit014bdeb8506747b81c46b63703f3e4ac28c70cee (patch)
tree7f75fa83937b6f3bd2b2bf20b9d46ee7373166a0 /vpp-api-test/scripts/vppctl
parent1f8aeb90270961bca6838afa01a1e4ecc3f9236a (diff)
Small fix for vppctl
Change-Id: I5d2668b3487d240e7d8c8a257e9a5607e2b314ec Signed-off-by: Ed Warnicke <eaw@cisco.com>
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