Silence uninitialized value warning in L3::Cisco

This commit is contained in:
Eric A. Miller
2014-07-08 21:48:50 -04:00
parent cd54b07e09
commit 0f5319bc52
2 changed files with 2 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ version 3.19
[BUG FIXES] [BUG FIXES]
* Fix Avaya detection lldp_port() * Fix Avaya detection lldp_port()
* Silence uninitialized value warning in L3::Cisco
version 3.18 (2014-07-02) version 3.18 (2014-07-02)

View File

@@ -124,6 +124,7 @@ sub i_vlan {
my $i_vlan = $cisco->SUPER::i_vlan($partial); my $i_vlan = $cisco->SUPER::i_vlan($partial);
foreach my $idx ( keys %$i_descr ) { foreach my $idx ( keys %$i_descr ) {
next unless $i_type->{$idx};
if ( $i_type->{$idx} eq 'l2vlan' if ( $i_type->{$idx} eq 'l2vlan'
|| $i_type->{$idx} eq '135' && !defined $i_vlan->{$idx} ) || $i_type->{$idx} eq '135' && !defined $i_vlan->{$idx} )
{ {