summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-17 17:01:54 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-17 17:01:54 -0700
commit133b72347631663ee595312579dd2991059280cb (patch)
tree909aaf53dfe5abf1551284e06030f2ad2a38d9e8 /templates/interfaces/ethernet
parent8db79c9b0aa8052e4dee0f073e945d68370a0210 (diff)
downloadvyatta-cfg-system-133b72347631663ee595312579dd2991059280cb.tar.gz
vyatta-cfg-system-133b72347631663ee595312579dd2991059280cb.zip
Add support for bonding
Bugfix 3173 Add support for bonding device creation and adding slaves
Diffstat (limited to 'templates/interfaces/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/bond-group/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bond-group/node.def b/templates/interfaces/ethernet/node.tag/bond-group/node.def
new file mode 100644
index 00000000..e62e37ab
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/bond-group/node.def
@@ -0,0 +1,9 @@
+type: txt
+help: Add this interface to a bonding group
+create: sudo ifenslave $VAR(@) $VAR(../@)
+delete: sudo ifenslave -d $VAR(@) $VAR(../@)
+allowed: for dev in /sys/class/net/*
+ do if [[ -d $dev/bonding ]]
+ then echo -n ${dev##*/} " "
+ fi
+ done