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 | |
parent | a4759d4b161ed6e6db9efb65f611cbd746529590 (diff) | |
download | vyatta-cfg-system-d7a627e71460d2f14d0238375e2979ef5bf75e32.tar.gz vyatta-cfg-system-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)
-rw-r--r-- | debian/control | 1 | ||||
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bond-group/node.def | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/debian/control b/debian/control index 731e7d3e..a842ee97 100644 --- a/debian/control +++ b/debian/control @@ -28,7 +28,6 @@ Depends: sed (>= 4.1.5), openssh-server (>= 1:5.1p1-3), ed, tshark, - ifenslave-2.6, iputils-arping, installation-report, laptop-detect, 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" |