Blame tests/p_bridge-utils/05-add_bridge.sh

root 06ef83
#!/bin/bash
root 06ef83
# Author : Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>
root 06ef83
root 06ef83
if  [ $# -eq 0 ]
root 06ef83
then
root 06ef83
  bridge=testbridge1
root 06ef83
else
root 06ef83
  bridge=$1
root 06ef83
fi
root 06ef83
Pablo Greco 6c1f07
. "$(dirname "$0")"/p_bridge-utils-functions
Pablo Greco 6c1f07
root 06ef83
t_Log "Running $0 - Adding a dummy Bridge: $bridge"
Pablo Greco 6c1f07
ret_val=$(bru_add_bridge $bridge)
root 06ef83
root 06ef83
t_CheckExitStatus $ret_val
Pablo Greco 6c1f07
bru_del_bridge $bridge >/dev/null
Pablo Greco 6c1f07
exit $ret_val