diff --git a/lib/SNMP/Info/LLDP.pm b/lib/SNMP/Info/LLDP.pm index b749b56d..15e2bbba 100644 --- a/lib/SNMP/Info/LLDP.pm +++ b/lib/SNMP/Info/LLDP.pm @@ -53,7 +53,7 @@ $VERSION = '3.86'; 'lldp_sysdesc' => 'lldpLocSysDesc', 'lldp_sys_cap' => 'lldpLocSysCapEnabled', 'lldp_loc_id_type' => 'lldpLocChassisIdSubtype', - '_lldp_loc_id_os' => 'lldpLocChassisId', + 'lldp_loc_id_os' => 'lldpLocChassisId', ); %FUNCS = ( @@ -331,7 +331,7 @@ sub lldp_id { sub lldp_loc_id { my $lldp = shift; my $ch_type = $lldp->lldp_loc_id_type(); - my $ch = $lldp->_lldp_loc_id_os(); + my $ch = $lldp->lldp_loc_id_os(); return $lldp->_lldp_id_string($ch, $ch_type); } diff --git a/xt/lib/Test/SNMP/Info/LLDP.pm b/xt/lib/Test/SNMP/Info/LLDP.pm index 864f0eb0..96bc6bbc 100644 --- a/xt/lib/Test/SNMP/Info/LLDP.pm +++ b/xt/lib/Test/SNMP/Info/LLDP.pm @@ -50,7 +50,7 @@ sub setup : Tests(setup) { '_lldp_rem_sysname' => 1, '_lldp_rem_id_type' => 1, '_lldp_rem_id' => 1, - '__lldp_loc_id_os' => pack("H*", 'ABCD12345678'), + '_lldp_loc_id_os' => pack("H*", 'ABCD12345678'), '_lldp_loc_id_type' => 'macAddress', '_lldp_rem_cap_spt' => 1, '_lldp_rem_media_cap_spt' => 1,