#506 fix uninitialised error for hash keys
This commit is contained in:
@@ -63,6 +63,8 @@ sub agg_ports_ifstack {
|
|||||||
foreach my $idx ( keys %$ifStack ) {
|
foreach my $idx ( keys %$ifStack ) {
|
||||||
my ( $higher, $lower ) = split /\./, $idx;
|
my ( $higher, $lower ) = split /\./, $idx;
|
||||||
next if ( $higher == 0 or $lower == 0 );
|
next if ( $higher == 0 or $lower == 0 );
|
||||||
|
next unless exists $ifType->{ $higher } and defined $ifType->{ $higher };
|
||||||
|
|
||||||
if ( $ifType->{ $higher } eq 'ieee8023adLag'
|
if ( $ifType->{ $higher } eq 'ieee8023adLag'
|
||||||
or $ifType->{ $higher } eq 'propMultiplexor' ) {
|
or $ifType->{ $higher } eq 'propMultiplexor' ) {
|
||||||
$ret->{ $lower } = $higher;
|
$ret->{ $lower } = $higher;
|
||||||
|
|||||||
@@ -153,6 +153,8 @@ sub agg_ports_propvirtual {
|
|||||||
foreach my $idx ( keys %$ifStack ) {
|
foreach my $idx ( keys %$ifStack ) {
|
||||||
my ( $higher, $lower ) = split /\./, $idx;
|
my ( $higher, $lower ) = split /\./, $idx;
|
||||||
next if ( $higher == 0 or $lower == 0 );
|
next if ( $higher == 0 or $lower == 0 );
|
||||||
|
next unless exists $ifType->{ $higher } and defined $ifType->{ $higher };
|
||||||
|
|
||||||
if ( $ifType->{ $higher } eq 'propVirtual' ) {
|
if ( $ifType->{ $higher } eq 'propVirtual' ) {
|
||||||
|
|
||||||
# lower needs also to be configured in pagpEthcOperationMode
|
# lower needs also to be configured in pagpEthcOperationMode
|
||||||
|
|||||||
Reference in New Issue
Block a user