mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Collect OUI Database and do OUI lookups (#12842)
* first draft refresh time refresh time * return codes style style * presentation * Exception details more fix fix * add tooltips fixes for dns display * create WebUI config option languages * refresh data every 7 to 11 days, keep it 15 days max * 'Ports' and 'Port' ARP table * Stp page support style style * fix dnsname column finding when vendor is added/removed fix dnsname column finding when vendor is added/removed * nac vendor column nac * filter fields to reduce size of AJAX reply filter fields to reduce size of AJAX reply * fix typo on dns column detection * default enabled
This commit is contained in:
@@ -157,6 +157,7 @@ class FdbTablesController extends TableController
|
||||
$item = [
|
||||
'device' => $fdb_entry->device ? Url::deviceLink($fdb_entry->device) : '',
|
||||
'mac_address' => Rewrite::readableMac($fdb_entry->mac_address),
|
||||
'mac_oui' => Rewrite::readableOUI($fdb_entry->mac_address),
|
||||
'ipv4_address' => $ip_info['ips']->implode(', '),
|
||||
'interface' => '',
|
||||
'vlan' => $fdb_entry->vlan ? $fdb_entry->vlan->vlan_vlan : '',
|
||||
|
@@ -47,6 +47,7 @@ class PortNacController extends TableController
|
||||
return [
|
||||
'port_id',
|
||||
'mac_address',
|
||||
'mac_oui',
|
||||
'ip_address',
|
||||
'vlan',
|
||||
'domain',
|
||||
@@ -70,7 +71,10 @@ class PortNacController extends TableController
|
||||
*/
|
||||
public function baseQuery($request)
|
||||
{
|
||||
return PortsNac::where('device_id', $request->device_id)->hasAccess($request->user())->with('port');
|
||||
return PortsNac::select('port_id', 'mac_address', 'ip_address', 'vlan', 'domain', 'host_mode', 'username', 'authz_by', 'timeout', 'time_elapsed', 'time_left', 'authc_status', 'authz_status', 'method')
|
||||
->where('device_id', $request->device_id)
|
||||
->hasAccess($request->user())
|
||||
->with('port');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,7 +84,9 @@ class PortNacController extends TableController
|
||||
{
|
||||
$item = $nac->toArray();
|
||||
$item['port_id'] = Url::portLink($nac->port, $nac->port->getShortLabel());
|
||||
$item['mac_oui'] = Rewrite::readableOUI($item['mac_address']);
|
||||
$item['mac_address'] = Rewrite::readableMac($item['mac_address']);
|
||||
$item['port'] = null; //free some unused data to be sent to the browser
|
||||
|
||||
return $item;
|
||||
}
|
||||
|
Reference in New Issue
Block a user