From: Michael Tremer Date: Mon, 3 Jun 2019 10:29:57 +0000 (+0200) Subject: vlan: Create partent port (if necessary) X-Git-Url: http://git.ipfire.org/?p=network.git;a=commitdiff_plain;h=68cacd23226f401f1676e8bfc975467647cefef0 vlan: Create partent port (if necessary) Signed-off-by: Michael Tremer --- diff --git a/src/hooks/ports/vlan b/src/hooks/ports/vlan index 4715b1f6..384ad50f 100644 --- a/src/hooks/ports/vlan +++ b/src/hooks/ports/vlan @@ -113,6 +113,12 @@ hook_create() { return ${EXIT_ERROR} fi + # Create the partent port first + if ! port_create "${PARENT_PORT}"; then + error "Could not bring up parent port: ${PARENT_PORT}" + return ${EXIT_ERROR} + fi + # Create the VLAN device if ! vlan_create "${port}" \ --address="${ADDRESS}" \