From: Thomas Parrott Date: Wed, 15 May 2019 16:09:47 +0000 (+0100) Subject: network: Fixes bug that stopped down hook from running for phys netdevs X-Git-Tag: lxc-3.2.0~49^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3259dc669b323d201036a56c29c16a459da67b2;p=thirdparty%2Flxc.git network: Fixes bug that stopped down hook from running for phys netdevs Signed-off-by: Thomas Parrott --- diff --git a/src/lxc/network.c b/src/lxc/network.c index a77266d63..189d92088 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -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; }