mirror of
git://github.com/lxc/lxc
synced 2025-08-31 02:29:34 +00:00
Dont' try to remove a physical nic on error
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
committed by
Daniel Lezcano
parent
6168e99fff
commit
96bcd56ae2
@@ -1336,7 +1336,7 @@ void lxc_delete_network(struct lxc_list *network)
|
||||
|
||||
lxc_list_for_each(iterator, network) {
|
||||
netdev = iterator->elem;
|
||||
if (netdev->ifindex > 0)
|
||||
if (netdev->ifindex > 0 && netdev->type != LXC_NET_PHYS)
|
||||
lxc_device_delete_index(netdev->ifindex);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user