We are making a lot of use of the API and we have a lot of linux hosts that requires ifName port association.
When you add a host through the API it is not possible to add the association port mode to ifName
By modifying 2 lines in /opt/librenms/includes/html/api_functions.inc.php we manage to have support of that :
$port_association = $data[‘port_association’] ?: ‘ifIndex’; // at line 381
$device_id = addHost($hostname, $snmpver, $port, $transport, $poller_group, $force_add, $port_association, $additional); // at line 410
How can we propose this change in the code ?