diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-15 11:43:28 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2009-07-17 14:56:03 -0700 |
commit | d7a627e71460d2f14d0238375e2979ef5bf75e32 (patch) | |
tree | d5e202911f755bdbd896ed06b595bf80194b0831 /templates | |
parent | a4759d4b161ed6e6db9efb65f611cbd746529590 (diff) | |
download | vyatta-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')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bond-group/node.def | 4 |
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" |