Unverified Commit dfa49f0d by Christian Brauner Committed by Stéphane Graber

network: log warning on network deconfiguration failures

parent 00d87eb1
...@@ -2844,6 +2844,9 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler) ...@@ -2844,6 +2844,9 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler)
netdev->ifindex, netdev->link); netdev->ifindex, netdev->link);
ret = netdev_deconf[netdev->type](handler, netdev); ret = netdev_deconf[netdev->type](handler, netdev);
if (ret < 0)
WARN("Failed to deconfigure interface with index %d and initial name \"%s\"",
netdev->ifindex, netdev->link);
goto clear_ifindices; goto clear_ifindices;
} }
...@@ -3226,6 +3229,9 @@ bool lxc_delete_network_priv(struct lxc_handler *handler) ...@@ -3226,6 +3229,9 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
} }
ret = netdev_deconf[netdev->type](handler, netdev); ret = netdev_deconf[netdev->type](handler, netdev);
if (ret < 0)
WARN("Failed to deconfigure interface with index %d and initial name \"%s\"",
netdev->ifindex, netdev->link);
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