]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: log warning on network deconfiguration failures
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 15 Apr 2020 12:02:03 +0000 (14:02 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 15 Apr 2020 12:10:31 +0000 (14:10 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c

index 2a4a476509bcb112f984b22363a59a342b829723..6bdcd71a5b78642d8c485564f36b7490b605ffaa 100644 (file)
@@ -2844,6 +2844,9 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler)
                                      netdev->ifindex, netdev->link);
 
                        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;
                }
 
@@ -3226,6 +3229,9 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
                        }
 
                        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;
                }