don't think _lldp_loc_id_os needs underscore

This commit is contained in:
Oliver Gorwits
2022-08-12 17:20:42 +01:00
parent ac18ab7b10
commit c514baa9b2
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ $VERSION = '3.86';
'lldp_sysdesc' => 'lldpLocSysDesc', 'lldp_sysdesc' => 'lldpLocSysDesc',
'lldp_sys_cap' => 'lldpLocSysCapEnabled', 'lldp_sys_cap' => 'lldpLocSysCapEnabled',
'lldp_loc_id_type' => 'lldpLocChassisIdSubtype', 'lldp_loc_id_type' => 'lldpLocChassisIdSubtype',
'_lldp_loc_id_os' => 'lldpLocChassisId', 'lldp_loc_id_os' => 'lldpLocChassisId',
); );
%FUNCS = ( %FUNCS = (
@@ -331,7 +331,7 @@ sub lldp_id {
sub lldp_loc_id { sub lldp_loc_id {
my $lldp = shift; my $lldp = shift;
my $ch_type = $lldp->lldp_loc_id_type(); 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); return $lldp->_lldp_id_string($ch, $ch_type);
} }

View File

@@ -50,7 +50,7 @@ sub setup : Tests(setup) {
'_lldp_rem_sysname' => 1, '_lldp_rem_sysname' => 1,
'_lldp_rem_id_type' => 1, '_lldp_rem_id_type' => 1,
'_lldp_rem_id' => 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_loc_id_type' => 'macAddress',
'_lldp_rem_cap_spt' => 1, '_lldp_rem_cap_spt' => 1,
'_lldp_rem_media_cap_spt' => 1, '_lldp_rem_media_cap_spt' => 1,