blob: 88b48d8b28085cf2b801d0876d7131d9496ee58b [file] [log] [blame]
Ed Warnicke2d8862c2015-12-22 13:23:18 -07001#!/bin/bash
Ed Warnicke7471c6d2016-01-18 10:12:53 -07002if [ $# -gt 0 ]; then
Ed Warnickea67c4182016-01-26 15:45:07 -07003 echo exec ${@} | vpp_api_test | sed 's/vat# //g'
Ed Warnicke7471c6d2016-01-18 10:12:53 -07004else
5 echo -n "vpp# "
6 while read CMD; do
Ed Warnicke014bdeb2016-01-25 18:52:58 -07007 if [ "x$CMD" == "xexit" ]; then
8 exit
9 elif [ "x$CMD" != "x" ]; then
Ed Warnickea67c4182016-01-26 15:45:07 -070010 echo exec $CMD | vpp_api_test | sed 's/vat# //g'
Ed Warnicke014bdeb2016-01-25 18:52:58 -070011 fi
12 echo -n "vpp# "
Ed Warnicke7471c6d2016-01-18 10:12:53 -070013 done
14fi