Commit 23bc3f42 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Bug fix in reserve vlan tags; once we get a tag, quit the loop and

stop allocating tags over and over for the same link.
parent 91cb6517
......@@ -2502,6 +2502,7 @@ sub doReserveVlanTags($$@) {
my $tag = $stack->newVlanNumber($vlanid, $vlanid);
if ($tag) {
push(@assigned, [$vlan,$tag]);
next;
}
elsif (!$opt{'blockmode'}) {
#
......
......@@ -2539,6 +2539,7 @@ sub doReserveVlanTags($$@) {
my $tag = $stack->newVlanNumber($vlanid, $vlanid);
if ($tag) {
push(@assigned, [$vlan,$tag]);
next;
}
elsif (!$opt{'blockmode'}) {
#
......
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