revert part of #484 and remove propVirtual from ifStackStatus aggregates

This commit is contained in:
Oliver Gorwits
2023-07-25 11:18:20 +01:00
parent f101cb0a23
commit b10ff0f8dd
2 changed files with 2 additions and 3 deletions

View File

@@ -64,8 +64,7 @@ sub agg_ports_ifstack {
my ( $higher, $lower ) = split /\./, $idx;
next if ( $higher == 0 or $lower == 0 );
if ( $ifType->{ $higher } eq 'ieee8023adLag'
or $ifType->{ $higher } eq 'propMultiplexor'
or $ifType->{ $higher } eq 'propVirtual' ) {
or $ifType->{ $higher } eq 'propMultiplexor' ) {
$ret->{ $lower } = $higher;
}
}

View File

@@ -82,7 +82,7 @@ sub agg_ports_ifstack : Tests(2) {
can_ok($test->{info}, 'agg_ports_ifstack');
my $expected
= {'10' => '163', '90' => '163', '10102' => '5010', '10103' => '5010', '20' => '8193', '80' => '8193',};
= {'10' => '163', '90' => '163', '20' => '8193', '80' => '8193',};
cmp_deeply($test->{info}->agg_ports_ifstack(),
$expected, q(Aggregated links have expected values));