Blob Blame History Raw
#!/bin/bash
# Author : Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>

if [ "$CONTAINERTEST" -eq "1" ]; then
    t_Log "Running in container -> SKIP"
    exit 0
fi

if  [ $# -eq 0 ]
then
  bridge=testbridge1
else
  bridge=$1
fi

. "$(dirname "$0")"/p_bridge-utils-functions

t_Log "Running $0 - Adding a dummy Bridge: $bridge"
ret_val=$(bru_add_bridge $bridge)

t_CheckExitStatus $ret_val
bru_del_bridge $bridge >/dev/null
exit $ret_val