Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e1ccf5a4
Commit
e1ccf5a4
authored
Dec 18, 2002
by
Leigh B. Stoller
Browse files
Clean up ipport_ranges table, which is the assigned port space for an
experiment using jailed nodes.
parent
573af413
Changes
3
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbend.in
View file @
e1ccf5a4
...
...
@@ -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
...
...
tbsetup/tbswapin.in
View file @
e1ccf5a4
...
...
@@ -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
);
}
...
...
tbsetup/tbswapout.in
View file @
e1ccf5a4
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment