summaryrefslogtreecommitdiffstats
path: root/vpp-api-test/scripts/vppctl
blob: 88b48d8b28085cf2b801d0876d7131d9496ee58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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