diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-06 18:50:06 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-12 15:43:55 +0100 |
commit | d2cf9ae99834de3b8338008cae6273b967c353cd (patch) | |
tree | 3e0eaa69b496e50149254c61a29411d9e7831a78 /src/lib/connections/bond | |
parent | 9a1ca23b6089eff590056fca12ea8ca07c80014a (diff) | |
download | netctl-d2cf9ae99834de3b8338008cae6273b967c353cd.tar.gz netctl-d2cf9ae99834de3b8338008cae6273b967c353cd.tar.xz |
Add policy support to bonding connections
Diffstat (limited to 'src/lib/connections/bond')
-rw-r--r-- | src/lib/connections/bond | 5 |
1 files changed, 2 insertions, 3 deletions
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 |