]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: Fixes bug that stopped down hook from running for phys netdevs
authorThomas Parrott <thomas.parrott@canonical.com>
Wed, 15 May 2019 16:09:47 +0000 (17:09 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 18 May 2019 09:53:52 +0000 (11:53 +0200)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/network.c

index 318bf370947c3ca0d34faf9e28f5fd76f2546cea..ca82eda7f910132bbac9ce890266e24a15f1af34 100644 (file)
@@ -2505,6 +2505,8 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler)
                                TRACE("Renamed interface with index %d to its "
                                      "initial name \"%s\"",
                                      netdev->ifindex, netdev->link);
+
+                       ret = netdev_deconf[netdev->type](handler, netdev);
                        goto clear_ifindices;
                }
 
@@ -2691,6 +2693,8 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
                                                netdev->link, netdev->priv.phys_attr.mtu);
                                }
                        }
+
+                       ret = netdev_deconf[netdev->type](handler, netdev);
                        goto clear_ifindices;
                }