Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Add column in IP range list to display the name of the SNMP credentials #2313

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions inc/iprange.class.php
Expand Up @@ -147,6 +147,24 @@ function getSearchOptions() {
$tab[4]['linkfield'] = 'ip_end';
$tab[4]['name'] = __('End of IP range', 'fusioninventory');

$tab[5] = [
'table' => 'glpi_plugin_fusioninventory_configsecurities',
'field' => 'name',
'datatype' => 'dropdown',
'right' => 'all',
'name' => __('SNMP credentials', 'fusioninventory'),
'forcegroupby' => true,
'massiveaction' => false,
'joinparams' => [
'beforejoin' => [
'table' => "glpi_plugin_fusioninventory_ipranges_configsecurities",
'joinparams' => [
'jointype' => 'child',
]
]
]
];

return $tab;
}

Expand Down