Commit ad8b9eac authored by Leigh B Stoller's avatar Leigh B Stoller

Check sitevariable to see if firewalls are supported.

parent 70bb9b16
......@@ -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";
......
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