Unverified Commit 6ae34d21 by Christian Brauner Committed by GitHub

Merge pull request #3006 from tomponline/tp-phys-downhook

network: Fixes bug that stopped down hook from running for phys netdevs
parents e2f2d86a b3259dc6
...@@ -2787,6 +2787,8 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler) ...@@ -2787,6 +2787,8 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler)
TRACE("Renamed interface with index %d to its " TRACE("Renamed interface with index %d to its "
"initial name \"%s\"", "initial name \"%s\"",
netdev->ifindex, netdev->link); netdev->ifindex, netdev->link);
ret = netdev_deconf[netdev->type](handler, netdev);
goto clear_ifindices; goto clear_ifindices;
} }
...@@ -3224,6 +3226,8 @@ bool lxc_delete_network_priv(struct lxc_handler *handler) ...@@ -3224,6 +3226,8 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
netdev->link, netdev->priv.phys_attr.mtu); netdev->link, netdev->priv.phys_attr.mtu);
} }
} }
ret = netdev_deconf[netdev->type](handler, netdev);
goto clear_ifindices; goto clear_ifindices;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment