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

The no_openflow sitevar can now be set to "ignore" which tells the

CM to silently ignore openflow requests (instead of throwing an error).
Used on the Utah Stitch aggregate.
parent 93581c69
......@@ -611,10 +611,15 @@ sub GetTicketAuxAux($$$$$$$$$$$)
# Watch for sites that do not support openflow, we want to fail early.
#
my $no_openflow = 0;
my $ignore_openflow = 0;
if (!GetSiteVar('general/no_openflow', \$no_openflow)){
# Cannot get the value, say no.
$no_openflow = 1;
}
if ($no_openflow =~ /ignore/) {
$no_openflow = 1;
$ignore_openflow = 1;
}
# Figure out if user has a credentials that exempts him
# from the following policy. If external users are blocked access
......@@ -2388,7 +2393,7 @@ sub GetTicketAuxAux($$$$$$$$$$$)
"fixed_iface" => $iface_name,
"uselinkdelay"=> $uselinkdelay,
});
if ($ofcontroller && $ofcontroller ne "") {
if ($ofcontroller && $ofcontroller ne "" && !$ignore_openflow) {
if ($no_openflow) {
$response =
GeniResponse->Create(GENIRESPONSE_BADARGS, undef,
......
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