Commit 03d05ee9 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Do not request a tag reservation from outer emulab if already have

parent b8e8e5f6
......@@ -397,8 +397,13 @@ sub RemoteDoReserveVlanTags($$@)
my $vlan = VLan->Lookup($vlanid);
return -1
if (!defined($vlan));
# XXX If we already have a tag reserved, do not bother.
if ($vlan->GetReservedVlanTags());
$vlans{"$vlanid"} = $vlan;
return 0
if (! keys(%vlans));
foreach my $id (keys(%vlans)) {
my $vlan = $vlans{"$id"};
Supports Markdown
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