network: Fixes bug that stopped down hook from running for phys netdevs

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
This commit is contained in:
Thomas Parrott 2019-05-15 17:09:47 +01:00
parent e2f2d86a41
commit b3259dc669

View 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;
}