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
7539770a
Commit
7539770a
authored
Jul 19, 2005
by
Leigh B. Stoller
Browse files
Allow admin (reddot) to turn off firewalling when experiment is
swapped out.
parent
59a919f4
Changes
1
Show whitespace changes
Inline
Side-by-side
tbsetup/swapexp.in
View file @
7539770a
...
...
@@ -1324,9 +1324,16 @@ sub CheckFWinfo($)
# Experiment cannot go from firewalled to not firewalled, in either the
# swapped or active state.
if
(
$wasfirewalled
&&
!
$nowfirewalled
)
{
if
(
!
$isadmin
)
{
$msg
=
"
Not allowed to turn off firewalling!
";
goto
noway
;
}
if
(
$curstate
eq
EXPTSTATE_ACTIVE
())
{
$msg
=
"
Not allowed to turn off firewalling while active!
";
goto
noway
;
}
goto
okay
;
}
#
# Make sure there is at least one other node besides the firewalled node.
...
...
Write
Preview
Supports
Markdown
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