]> git.ipfire.org Git - people/ms/network.git/commitdiff
vlan: Create devices when they don't exist, yet
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Aug 2017 19:22:21 +0000 (19:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Aug 2017 19:22:21 +0000 (19:22 +0000)
The hotplug triggers will take care of attaching the
device to the zone it should belong to.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/zones/bridge

index e0d839b3d757e799c15e49b2a9f2e383672b94e6..245f4c1a21b59078421552d59c4ffb5e84d7d2a5 100644 (file)
@@ -308,7 +308,7 @@ hook_port_up() {
        # We will get here as soon as the port device has
        # been created and will then connect it with the bridge.
        if ! device_exists "${port}"; then
-               port_up "${port}"
+               port_create "${port}"
 
                exit ${EXIT_OK}
        fi