]> git.proxmox.com Git - mirror_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)
committerThomas Parrott <thomas.parrott@canonical.com>
Wed, 15 May 2019 16:09:47 +0000 (17:09 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/network.c

index a77266d63c6e320056869091f91737d1bf135787..189d92088fa53988dcfb20ccd37c0fc540ed07ef 100644 (file)
@@ -2787,6 +2787,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;
                }
 
@@ -3224,6 +3226,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;
                }