From b10ff0f8dd7ac813543fef92a652e32b5b9adc31 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 25 Jul 2023 11:18:20 +0100 Subject: [PATCH] revert part of #484 and remove propVirtual from ifStackStatus aggregates --- lib/SNMP/Info/Aggregate.pm | 3 +-- xt/lib/Test/SNMP/Info/Aggregate.pm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/SNMP/Info/Aggregate.pm b/lib/SNMP/Info/Aggregate.pm index 1109776a..eac61ef6 100644 --- a/lib/SNMP/Info/Aggregate.pm +++ b/lib/SNMP/Info/Aggregate.pm @@ -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; } } diff --git a/xt/lib/Test/SNMP/Info/Aggregate.pm b/xt/lib/Test/SNMP/Info/Aggregate.pm index 8c84007c..62702594 100644 --- a/xt/lib/Test/SNMP/Info/Aggregate.pm +++ b/xt/lib/Test/SNMP/Info/Aggregate.pm @@ -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));