Ed Warnicke 014bdeb850 Small fix for vppctl
Change-Id: I5d2668b3487d240e7d8c8a257e9a5607e2b314ec
Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-01-26 09:57:14 -07:00

15 lines
338 B
Bash
Executable File

#!/bin/bash
if [ $# -gt 0 ]; then
echo exec ${@} | vpe_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 | vpe_api_test | sed 's/vat# //g'
fi
echo -n "vpp# "
done
fi