Commit 97ff1130 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

More VLAN_UNAVAILBLE errors.

parent d6313db3
......@@ -2524,7 +2524,9 @@ sub GetTicketAuxAux($$$$$$$$$$)
if (!@tags) {
$vlan->Destroy()
if ($madevlan);
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
$response =
GeniResponse->Create(GENIRESPONSE_VLAN_UNAVAILABLE,
undef,
"Could not find a free vlan tag for $linkname");
goto bad;
}
......@@ -2535,8 +2537,10 @@ sub GetTicketAuxAux($$$$$$$$$$)
if ($?) {
$vlan->Destroy()
if ($madevlan);
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Error trying to reserve a vlan tag for $linkname");
$response =
GeniResponse->Create(GENIRESPONSE_VLAN_UNAVAILABLE,
undef,
"Could not reserve a vlan tag for $linkname");
goto bad;
}
$vlan->Destroy()
......@@ -2545,7 +2549,8 @@ sub GetTicketAuxAux($$$$$$$$$$)
$tag = VLan::GetReservedVlanTag($slice_experiment, $linkname);
if (!defined($tag)) {
print STDERR "Did not find the reserved tag for $linkname\n";
$response = GeniResponse->Create(GENIRESPONSE_ERROR, undef,
$response = GeniResponse->Create(GENIRESPONSE_VLAN_UNAVAILABLE,
undef,
"Could not reserve a vlan tag for $linkname");
goto bad;
}
......@@ -6562,7 +6567,7 @@ sub ReserveLocalVlanTag($$$)
if ($?) {
$vlan->Destroy()
if ($createdvlan);
return GeniResponse->Create(GENIRESPONSE_UNAVAILABLE, undef,
return GeniResponse->Create(GENIRESPONSE_VLAN_UNAVAILABLE, undef,
"Error reserving vlan tag for $lanname");
}
$vlan->Destroy()
......
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