mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
MAC Vendor OUI use scheduler (#15187)
* MAC Vendor OUI use scheduler Add command to update `lnms maintenance:fetch-ouis` Show vendor column in tables if mac_oui.enabled is set to true Improve scheduler validation handle non-standard install directories and systems without systemd Add index to table to improve speed and improve mac->vendor lookup speed Scheduled weekly with random wait to prevent stampeding herd issues for upstream drop oui update from daily * MAC Vendor OUI use scheduler Add command to update `lnms maintenance:fetch-ouis` Show vendor column in tables if mac_oui.enabled is set to true * Lint fixes and better prefix detection * update schema file
This commit is contained in:
@@ -37,11 +37,7 @@ if ($device['os'] === 'vrp') {
|
||||
<tr>
|
||||
<th data-column-id="port_id" data-width="100px">Port</th>
|
||||
<th data-column-id="mac_address" data-width="150px" data-formatter="tooltip">MAC Address</th>
|
||||
<?php
|
||||
if (\LibreNMS\Config::get('mac_oui.enabled') === true) {
|
||||
echo ' <th data-column-id="mac_oui" data-sortable="false" data-width="130px" data-visible="false" data-formatter="tooltip">Vendor</th>';
|
||||
}
|
||||
?>
|
||||
<th data-column-id="mac_oui" data-sortable="false" data-width="130px" data-visible="<?php echo \LibreNMS\Config::get('mac_oui.enabled') ? 'true' : 'false' ?>" data-formatter="tooltip">Vendor</th>
|
||||
<th data-column-id="ip_address" data-width="140px" data-formatter="tooltip">IP Address</th>
|
||||
<th data-column-id="vlan" data-width="60px" data-formatter="tooltip"<?php echo $vlan_visibility ?>>Vlan</th>
|
||||
<th data-column-id="domain" data-formatter="nac_domain" data-formatter="tooltip">Domain</th>
|
||||
@@ -89,7 +85,7 @@ if (\LibreNMS\Config::get('mac_oui.enabled') === true) {
|
||||
"nac_authz": function (column, row) {
|
||||
var value = row[column.id];
|
||||
|
||||
if (value === 'authorizationSuccess' || value === 'sussess') {
|
||||
if (value === 'authorizationSuccess' || value === 'sussess') {
|
||||
//typo in huawei MIB so we must keep sussess
|
||||
return "<i class=\"fa fa-check-circle fa-lg icon-theme\" aria-hidden=\"true\" style=\"color:green;\"></i>";
|
||||
} else if (value === 'authorizationFailed') {
|
||||
|
@@ -5,11 +5,7 @@ $no_refresh = true;
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-column-id="mac_address" data-formatter="tooltip">MAC address</th>
|
||||
<?php
|
||||
if (\LibreNMS\Config::get('mac_oui.enabled') === true) {
|
||||
echo ' <th data-column-id="mac_oui" data-sortable="false" data-width="" data-visible="true" data-formatter="tooltip">Vendor</th>';
|
||||
}
|
||||
?>
|
||||
<th data-column-id="mac_oui" data-sortable="false" data-width="" data-visible="<?php echo \LibreNMS\Config::get('mac_oui.enabled') ? 'true' : 'false' ?>" data-formatter="tooltip">Vendor</th>
|
||||
<th data-column-id="ipv4_address" data-formatter="tooltip">IPv4 address</th>
|
||||
<th data-column-id="remote_device" data-sortable="false">Remote device</th>
|
||||
<th data-column-id="remote_interface" data-sortable="false">Remote interface</th>
|
||||
|
@@ -6,11 +6,7 @@ $no_refresh = true;
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-column-id="mac_address" data-width="150px" data-formatter="tooltip">MAC Address</th>
|
||||
<?php
|
||||
if (\LibreNMS\Config::get('mac_oui.enabled') === true) {
|
||||
echo ' <th data-column-id="mac_oui" data-sortable="false" data-width="" data-visible="true" data-formatter="tooltip">Vendor</th>';
|
||||
}
|
||||
?>
|
||||
<th data-column-id="mac_oui" data-sortable="false" data-width="" data-visible="<?php echo \LibreNMS\Config::get('mac_oui.enabled') ? 'true' : 'false' ?>" data-formatter="tooltip">Vendor</th>
|
||||
<th data-column-id="ipv4_address" data-sortable="false" data-formatter="tooltip">IPv4 Address</th>
|
||||
<th data-column-id="interface">Port</th>
|
||||
<th data-column-id="vlan" data-width="60px">Vlan</th>
|
||||
|
@@ -5,11 +5,7 @@ $no_refresh = true;
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-column-id="mac_address" data-width="150px" data-formatter="tooltip">MAC Address</th>
|
||||
<?php
|
||||
if (\LibreNMS\Config::get('mac_oui.enabled') === true) {
|
||||
echo ' <th data-column-id="mac_oui" data-sortable="false" data-width="150px" data-visible="false" data-formatter="tooltip">Vendor</th>';
|
||||
}
|
||||
?>
|
||||
<th data-column-id="mac_oui" data-sortable="false" data-width="150px" data-visible="<?php echo \LibreNMS\Config::get('mac_oui.enabled') ? 'true' : 'false' ?>" data-formatter="tooltip">Vendor</th>
|
||||
<th data-column-id="ipv4_address" data-sortable="false" data-formatter="tooltip">IPv4 Address</th>
|
||||
<th data-column-id="interface">Port</th>
|
||||
<th data-column-id="description" data-formatter="tooltip">Description</th>
|
||||
|
Reference in New Issue
Block a user