vlan: Simplify vlan_remove()
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2019 10:15:41 +0000 (12:15 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2019 10:15:41 +0000 (12:15 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.vlan

index 97028b0..d83e3ad 100644 (file)
@@ -88,13 +88,7 @@ vlan_create() {
 }
 
 vlan_remove() {
-       local device=${1}
-       assert isset device
-
-       # Set down device (if not already done).
-       device_set_down ${device}
-
-       device_delete ${device}
+       device_delete "$@"
 }
 
 vlan_get_parent() {