Fix potential issue in enumeration of LLDP reported system capabilities supported by the remote system due to the 'lldpRemSysCapSupported' leaf name being defined in multiple MIBs

This commit is contained in:
Eric A. Miller
2018-05-06 10:51:19 -04:00
parent 0ab688964f
commit 4681004b52
3 changed files with 13 additions and 6 deletions

View File

@@ -376,9 +376,11 @@ sub lldp_cap : Tests(4) {
can_ok($test->{info}, 'lldp_cap');
my $expected = {'0.6.1' => ['bridge', 'router']};
cmp_deeply($test->{info}->lldp_cap(), $expected,
my $expected = ['bridge', 'router'];
my $caps = $test->{info}->lldp_cap();
cmp_set($caps->{'0.6.1'}, $expected,
q(Caps emumerated correctly));
$test->{info}{store}{lldp_rem_cap_spt} = {'0.6.1' => pack("H*", '0000')};