Commit e1ccf5a4 authored by Leigh Stoller's avatar Leigh Stoller

Clean up ipport_ranges table, which is the assigned port space for an

experiment using jailed nodes.
parent 573af413
......@@ -102,6 +102,8 @@ DBQueryWarn("DELETE from eventlist where pid='$pid' and eid='$eid'") or
$errors++;
DBQueryWarn("DELETE from ipsubnets where pid='$pid' and eid='$eid'") or
$errors++;
DBQueryWarn("DELETE from ipport_ranges where pid='$pid' and eid='$eid'") or
$errors++;
if ($errors == 0) {
SetExpState($pid, $eid, EXPTSTATE_TERMINATED) or
......
......@@ -94,6 +94,7 @@ sub cleanup {
DBQueryWarn("DELETE from vlans where pid='$pid' and eid='$eid'");
DBQueryWarn("DELETE from tunnels where pid='$pid' and eid='$eid'");
DBQueryWarn("DELETE from v2pmap where pid='$pid' and eid='$eid'");
DBQueryWarn("DELETE from ipport_ranges where pid='$pid' and eid='$eid'");
SetExpState($pid, $eid, EXPTSTATE_SWAPPED);
}
......
......@@ -173,6 +173,8 @@ DBQueryWarn("DELETE from tunnels where pid='$pid' and eid='$eid'")
or $errors++;
DBQueryWarn("DELETE from v2pmap where pid='$pid' and eid='$eid'")
or $errors++;
DBQueryWarn("DELETE from ipport_ranges where pid='$pid' and eid='$eid'")
or $errors++;
# Accounting info.
TBSetExpSwapTime($pid, $eid);
......
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