]> git.ipfire.org Git - people/ms/network.git/commitdiff
reset: Remove all ports instead of just bringing them down
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2015 15:05:25 +0000 (15:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2015 15:05:25 +0000 (15:05 +0000)
All virtual ports must be removed when the configuration
is destroyed.

src/functions/functions.ports

index 059b8f243015aa5b7865ffa8e534a95a351fc5ec..cfe9b50e6d8e203ca19e7a40349a891bd768b59e 100644 (file)
@@ -215,7 +215,7 @@ function port_destroy() {
                return ${EXIT_ERROR}
        fi
 
-       port_down ${port}
+       port_remove "${port}"
 
        rm -f $(port_file ${port})
 }