You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
442 B
24 lines
442 B
12 months ago
|
#!/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
|