There was one more issue with nic_delete. I added a check to make sure that we remove any networks before we are allowed to delete a nic.
One question, administrators can delete a nic on a node that belongs to some project. Should that be allowed? Our usual policy is to disallow deletion of something that is owned by a project (networks, nodes).
Yeah, I think we should refuse to delete a nic on a node that is allocated to a project; if an admin wants to remove a nic, they need to free it first.
Fixes #1039
There was one more issue with nic_delete. I added a check to make sure that we remove any networks before we are allowed to delete a nic.
One question, administrators can delete a nic on a node that belongs to some project. Should that be allowed? Our usual policy is to disallow deletion of something that is owned by a project (networks, nodes).