summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-15 11:43:28 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-07-17 14:56:03 -0700
commitd7a627e71460d2f14d0238375e2979ef5bf75e32 (patch)
treed5e202911f755bdbd896ed06b595bf80194b0831 /templates/interfaces
parenta4759d4b161ed6e6db9efb65f611cbd746529590 (diff)
downloadvyatta-cfg-quagga-d7a627e71460d2f14d0238375e2979ef5bf75e32.tar.gz
vyatta-cfg-quagga-d7a627e71460d2f14d0238375e2979ef5bf75e32.zip
Convert bonding to use sysfs instead of ifenslave
ifenslave is the old way, and may not be supported in future. Use sysfs instead to add/delete slaves. (cherry picked from commit 0bd1cd12ccb047afce7444f5728fc3bbc3f328a5)
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/bond-group/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bond-group/node.def b/templates/interfaces/ethernet/node.tag/bond-group/node.def
index 2109b5ac..ee9e283f 100644
--- a/templates/interfaces/ethernet/node.tag/bond-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/bond-group/node.def
@@ -3,5 +3,5 @@ help: Add this interface to a bonding group
commit:expression: exec \
"/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=bonding"
allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=bonding
-create: sudo ifenslave $VAR(@) $VAR(../@)
-delete: sudo ifenslave -d $VAR(@) $VAR(../@)
+create: sudo sh -c "echo +$VAR(../@) > /sys/class/net/$VAR(@)/bonding/slaves"
+delete: sudo sh -c "echo -$VAR(../@) > /sys/class/net/$VAR(@)/bonding/slaves"