From: Michael Tremer Date: Mon, 3 Jun 2019 10:15:41 +0000 (+0200) Subject: vlan: Simplify vlan_remove() X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=commitdiff_plain;h=23ddd3765e344e06f379a5ccc5c2cfcbfca9c7b7;hp=4776723194ad4d1ba75d1b373c1892e44ddcbf97 vlan: Simplify vlan_remove() Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.vlan b/src/functions/functions.vlan index 97028b0a..d83e3ad3 100644 --- a/src/functions/functions.vlan +++ b/src/functions/functions.vlan @@ -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() {