From 9cfc0bcd64f6f01beef92090d240111c12be160e Mon Sep 17 00:00:00 2001 From: Max Baker <> Date: Wed, 6 Sep 2006 17:28:53 +0000 Subject: [PATCH] added bypass of old vlan info if we already see the port is marked trunk --- Info/Layer2/HP.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Info/Layer2/HP.pm b/Info/Layer2/HP.pm index f68a3432..500b3dd1 100644 --- a/Info/Layer2/HP.pm +++ b/Info/Layer2/HP.pm @@ -326,7 +326,11 @@ 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; }