summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/bond
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2014-02-27 13:43:22 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2014-02-27 13:48:49 +0100
commit03afcdce237b2dc52a6c1fea72b715cf6c34bf05 (patch)
tree90f98f8f08a748dea06f479d88fa91938015b645 /src/lib/connections/bond
parentbcca0a027786c0d23f3f70c9f21b3332f41786e1 (diff)
downloadnetctl-03afcdce237b2dc52a6c1fea72b715cf6c34bf05.tar.gz
netctl-03afcdce237b2dc52a6c1fea72b715cf6c34bf05.tar.xz
Uniform adding and deleting of interfaces
The main benefit is the possibility to use interface hooks for links that are created at runtime.
Diffstat (limited to 'src/lib/connections/bond')
-rw-r--r--src/lib/connections/bond5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/connections/bond b/src/lib/connections/bond
index c22fc82..9cc8b96 100644
--- a/src/lib/connections/bond
+++ b/src/lib/connections/bond
@@ -10,7 +10,7 @@ bond_up() {
report_error "Interface '$Interface' already exists"
return 1
else
- ip link add name "$Interface" type bond
+ interface_add bond "$Interface"
fi
bring_interface_up "$Interface"
@@ -28,8 +28,7 @@ bond_down() {
done
ip_unset
- bring_interface_down "$Interface"
- ip link delete "$Interface"
+ interface_delete "$Interface"
}