Commit 96bcd56a by Daniel Lezcano Committed by Daniel Lezcano

Dont' try to remove a physical nic on error

parent 6168e99f
......@@ -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);
}
}
......
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