summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/connections/bridge')
-rw-r--r--src/lib/connections/bridge5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/connections/bridge b/src/lib/connections/bridge
index 94a4802..b358e01 100644
--- a/src/lib/connections/bridge
+++ b/src/lib/connections/bridge
@@ -11,7 +11,7 @@ bridge_up() {
return 1
fi
else
- ip link add name "$Interface" type bridge
+ interface_add bridge "$Interface"
fi
for member in "${BindsToInterfaces[@]}"; do
@@ -34,8 +34,7 @@ bridge_down() {
done
ip_unset
- bring_interface_down "$Interface"
- ip link delete "$Interface" type bridge
+ interface_delete "$Interface"
}