2
0
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:
Daniel Lezcano
2010-07-23 15:10:38 +02:00
committed by Daniel Lezcano
parent 6168e99fff
commit 96bcd56ae2

View File

@@ -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);
}
}