summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/vlan
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/vlan
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/vlan')
-rw-r--r--src/lib/connections/vlan4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/connections/vlan b/src/lib/connections/vlan
index e9ab08b..b34a67e 100644
--- a/src/lib/connections/vlan
+++ b/src/lib/connections/vlan
@@ -12,7 +12,7 @@ vlan_up() {
return 1
else
bring_interface_up "$BindsToInterfaces"
- ip link add link "$BindsToInterfaces" name "$Interface" type vlan id "$VLANID"
+ interface_add vlan "$Interface" "$BindsToInterfaces" id "$VLANID"
fi
ethernet_up
@@ -20,7 +20,7 @@ vlan_up() {
vlan_down() {
ethernet_down
- ip link delete "$Interface"
+ interface_delete "$Interface"
}