| echo "No argument supplied. Usage: bm-cli <MININET SWITCH NAME>" |
| tport=$(head -n 1 /tmp/bmv2-$1-thrift-port) |
| echo "Starting CLI for BMv2 instance $1 (Thrift port $tport)..." |
| sudo bm_CLI --thrift-port ${tport} --pre SimplePreLAG ${@:2} |
| echo "No argument supplied. Usage: bm-dbg <MININET SWITCH NAME>" |
| tport=$(head -n 1 /tmp/bmv2-$1-thrift-port) |
| echo "Starting debugger for BMv2 instance $1 (Thrift port $tport)..." |
| sudo bm_p4dbg --thrift-port ${tport} --socket ipc:///tmp/bmv2-$1-debug.ipc ${@:2} |
| echo "No argument supplied. Usage: bm-nmsg <MININET SWITCH NAME>" |
| tport=$(head -n 1 /tmp/bmv2-$1-thrift-port) |
| echo "Starting nanomsg event listener for BMv2 instance $1 (Thrift port $tport)..." |
| sudo bm_nanomsg_events --thrift-port ${tport} ${@:2} |
| echo "No argument supplied. Usage: bm-log <MININET SWITCH NAME>" |
| echo "Showing log for BMv2 instance $1..." |