added bypass of old vlan info if we already see the port is marked trunk

This commit is contained in:
Max Baker
2006-09-06 17:28:53 +00:00
parent 1820299dcf
commit 9cfc0bcd64

View File

@@ -326,6 +326,10 @@ sub i_vlan {
$vlan = 'Auto' if $tag eq 'auto';
undef $vlan if $tag eq 'no';
# HP4000 issue reported by Michael Robbert 5/25/06:
# if we're already listed as a trunk port, don't
# overwrite this with the untagged vlan number
next if defined $i_vlan->{$if} and $i_vlan->{$if} !~ /trunk/i;
$i_vlan->{$if} = $vlan if defined $vlan;
}