mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 03:44:32 +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:
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user