blob: 8525cb9ede4841a55e63b878926edbe924a33612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
tag:
priority: 310
type: txt
help: Bridge interface name
val_help: <brN>; Bridge interface name
syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)"
create: /sbin/brctl addbr $VAR(@)
if [ -n "$VAR(mac/@)" ] ; then
ip li set dev $VAR(@) address $VAR(mac/@)
fi
ip link set $VAR(@) up
delete: if ! /opt/vyatta/sbin/vyatta-bridgegroup-depedency.pl \
--no-interfaces-assigned \
--bridge-interface="$VAR(@)"; then \
exit 1
fi
ip link set $VAR(@) down;
/sbin/brctl delbr $VAR(@);
|