Code Review
/
vpp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Fixed issue with json output in vpp_api_test.
[vpp.git]
/
vpp-api-test
/
scripts
/
vppctl
1
#!/bin/bash
2
if [ $# -gt 0 ]; then
3
echo exec ${@} | vpp_api_test | sed 's/vat# //g'
4
else
5
echo -n "vpp# "
6
while read CMD; do
7
if [ "x$CMD" == "xexit" ]; then
8
exit
9
elif [ "x$CMD" != "x" ]; then
10
echo exec $CMD | vpp_api_test | sed 's/vat# //g'
11
fi
12
echo -n "vpp# "
13
done
14
fi