blob: 641d369df490b5f1de1196cd7ee43e7f2d762a36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
tag:
type: txt
help: Set bridge interface
syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)"
create: sudo brctl addbr $VAR(@)
delete: if [ -n "`/usr/sbin/brctl show | grep $VAR(@) | grep eth`" ]; then
echo "Interfaces are still assigned to bridge $VAR(@)";
exit 1;
fi;
sudo ip link set $VAR(@) down;
sudo brctl delbr $VAR(@);
comp_help: "Enter bridge interface name (br0 - br999)"
|