Ed Warnicke a67c418487 Fix vppctl to cope with vpe -> vpp transition
Change-Id: Ida88cff8b84756660eb682a6ff4d4ded3b0432e1
Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-01-26 15:45:07 -07:00

15 lines
338 B
Bash
Executable File

#!/bin/bash
if [ $# -gt 0 ]; then
echo exec ${@} | vpp_api_test | sed 's/vat# //g'
else
echo -n "vpp# "
while read CMD; do
if [ "x$CMD" == "xexit" ]; then
exit
elif [ "x$CMD" != "x" ]; then
echo exec $CMD | vpp_api_test | sed 's/vat# //g'
fi
echo -n "vpp# "
done
fi