Commit a911eb77 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to vlan tag reservation.

parent 793d44d7
......@@ -189,7 +189,12 @@ sub RemoteDoVlansFromTables($@)
}
my $vlan = $vlans{$vlanid};
if ($vlan->SetTag($tag) != 0) {
#
# This is should always succeed since we do whatever the
# outer emulab says to do.
#
if (! ($vlan->HasVlanTagReserved($tag) ||
$vlan->ReserveVlanTag($tag))) {
print STDERR "could not set vlan tag for $vlan\n";
$errors++;
}
......
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