Commit 8967587b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Delete veth_interfaces for a node when free. Just noticed how many

stale entries where in the DB ...
parent b3e0f3b7
......@@ -290,6 +290,9 @@ foreach my $n (@freed_nodes) {
# Reset its port allocation stuff.
DBQueryWarn("delete from nodeipportnum where node_id='$n'") || $error++;
# Clean the veth_interfaces table for this node.
DBQueryWarn("delete from veth_interfaces where node_id='$n'") || $error++;
# Now its safe to change the reservation.
# If the node has a next_reserve entry, change the reservation.
Supports Markdown
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