summaryrefslogtreecommitdiff
path: root/templates/interfaces/bonding/node.def
blob: 74e9e39dacb740aeff906f93773707627784623b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tag:
type: txt
help: Set bonding interface
syntax:expression: pattern $VAR(@) "^bond[0-9]+$" \
         ; "bonding must be (bond0-bond99)"
create: ${vyatta_sbindir}/vyatta-bonding.pl --create $VAR(@)
delete: SLAVES=`cat /sys/class/net/$VAR(@)/bonding/slaves`;
	if [ -z "$SLAVES" ]
	then ${vyatta_sbindir}/vyatta-bonding.pl --delete $VAR(@)
        else 
	   echo "bonded interface $VAR(@) still has slaves: $SLAVES"
           exit 1;           
        fi
end: ${vyatta_sbindir}/vyatta-bonding.pl --mode-change $VAR(@)
comp_help: Enter bond interface name (bond0 - bond99)