mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add ability to map ports based on their ifAlias.
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
This commit is contained in:
@ -1248,7 +1248,7 @@ function get_port_id ($ports_mapped, $port, $port_association_mode) {
|
||||
*/
|
||||
$maps = $ports_mapped['maps'];
|
||||
|
||||
if (in_array ($port_association_mode, array ('ifIndex', 'ifName', 'ifDescr'))) {
|
||||
if (in_array ($port_association_mode, array ('ifIndex', 'ifName', 'ifDescr', 'ifAlias'))) {
|
||||
$port_id = $maps[$port_association_mode][$port[$port_association_mode]];
|
||||
}
|
||||
|
||||
|
1
sql-schema/099.sql
Normal file
1
sql-schema/099.sql
Normal file
@ -0,0 +1 @@
|
||||
INSERT INTO port_association_mode (name) values ('ifAlias');
|
Reference in New Issue
Block a user