From d2cf9ae99834de3b8338008cae6273b967c353cd Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Tue, 6 Jan 2015 18:50:06 +0100 Subject: Add policy support to bonding connections --- src/lib/connections/bond | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/connections/bond b/src/lib/connections/bond index 7e4112f..64b0285 100644 --- a/src/lib/connections/bond +++ b/src/lib/connections/bond @@ -9,11 +9,10 @@ bond_up() { if is_interface "$Interface"; then report_error "Interface '$Interface' already exists" return 1 - else - interface_add bond "$Interface" fi - bring_interface_up "$Interface" + interface_add bond "$Interface" "" ${Mode:+mode "$Mode"} + bring_interface_up "$Interface" for slave in "${BindsToInterfaces[@]}"; do ip link set dev "$slave" master "$Interface" done -- cgit v1.2.3-24-g4f1b