summaryrefslogtreecommitdiffstats
path: root/vpp-api-test/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api-test/scripts')
-rwxr-xr-x[-rw-r--r--]vpp-api-test/scripts/vppctl13
1 files changed, 12 insertions, 1 deletions
diff --git a/vpp-api-test/scripts/vppctl b/vpp-api-test/scripts/vppctl
index b789493f2be..90828f6773b 100644..100755
--- a/vpp-api-test/scripts/vppctl
+++ b/vpp-api-test/scripts/vppctl
@@ -1,2 +1,13 @@
#!/bin/bash
-echo exec ${@} | vpe_api_test | sed 's/vat# //g'
+if [ $# -gt 0 ]; then
+ 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 | vpe_api_test | sed 's/vat# //g'
+ echo -n "vpp# "
+ done
+fi