From 23ae1791917d48da7237d918f19dfa55a6a13d8f Mon Sep 17 00:00:00 2001 From: ajs124_desk Date: Sat, 1 Mar 2014 21:42:52 +0100 Subject: port bonding from ifenslave to iproute2 Ifenslave is deprecated according to the kernel documentation: https://www.kernel.org/doc/Documentation/networking/bonding.txt It also added an additional, unnecessary dependency. I tried to update the documentation to reflect this change. --- src/lib/connections/bond | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/connections/bond b/src/lib/connections/bond index 9cc8b96..2909b90 100644 --- a/src/lib/connections/bond +++ b/src/lib/connections/bond @@ -1,8 +1,7 @@ -# Contributed by: Byron Williams +# Contributed by: andy123 . "$SUBR_DIR/ip" -: ${IFENSLAVE:=ifenslave} declare -ag BindsToInterfaces bond_up() { @@ -15,8 +14,7 @@ bond_up() { bring_interface_up "$Interface" for slave in "${BindsToInterfaces[@]}"; do - bring_interface_up "$slave" - $IFENSLAVE "$Interface" "$slave" + ip link set dev "$slave" master "$Interface" done ip_set @@ -24,7 +22,7 @@ bond_up() { bond_down() { for slave in "${BindsToInterfaces[@]}"; do - $IFENSLAVE "$Interface" -d "$slave" + ip link set dev "$slave" nomaster done ip_unset -- cgit v1.2.3-24-g4f1b