#506 fix uninitialised error for hash keys

This commit is contained in:
Oliver Gorwits
2023-11-04 11:55:40 +00:00
parent aa17e6865c
commit 5af11cb612
2 changed files with 4 additions and 0 deletions

View File

@@ -63,6 +63,8 @@ sub agg_ports_ifstack {
foreach my $idx ( keys %$ifStack ) {
my ( $higher, $lower ) = split /\./, $idx;
next if ( $higher == 0 or $lower == 0 );
next unless exists $ifType->{ $higher } and defined $ifType->{ $higher };
if ( $ifType->{ $higher } eq 'ieee8023adLag'
or $ifType->{ $higher } eq 'propMultiplexor' ) {
$ret->{ $lower } = $higher;

View File

@@ -153,6 +153,8 @@ sub agg_ports_propvirtual {
foreach my $idx ( keys %$ifStack ) {
my ( $higher, $lower ) = split /\./, $idx;
next if ( $higher == 0 or $lower == 0 );
next unless exists $ifType->{ $higher } and defined $ifType->{ $higher };
if ( $ifType->{ $higher } eq 'propVirtual' ) {
# lower needs also to be configured in pagpEthcOperationMode