Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
ad8b9eac
Commit
ad8b9eac
authored
Mar 03, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check sitevariable to see if firewalls are supported.
parent
70bb9b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
protogeni/lib/GeniCM.pm.in
protogeni/lib/GeniCM.pm.in
+16
-0
No files found.
protogeni/lib/GeniCM.pm.in
View file @
ad8b9eac
...
...
@@ -1308,6 +1308,22 @@ sub GetTicketAuxAux($$$$$$$$$$$)
$pctype = undef;
}
elsif ($virtualization_subtype eq "firewall") {
#
# A sitevar controls whether we actually can do it.
#
my $cnet_firewalls = 0;
if (!GetSiteVar('
general
/
cnet_firewalls
',
\$cnet_firewalls)){
# Cannot get the value, say no.
$cnet_firewalls = 0;
}
if (!$cnet_firewalls) {
$response
= GeniResponse->Create(GENIRESPONSE_BADARGS,
undef,
"Firewalls are not supported here");
goto bad;
}
$isfirewall = 1;
# Corresponds to iptables-vlan, see below.
$osname = "FW-IPTABLES";
...
...
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