mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use full name for vendor_oui (#15234)
* Use full name for vendor_oui * trimmed * typo * more spaces to remove * don't set $short_vendor * keep line return --------- Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -104,7 +104,7 @@ class MaintenanceFetchOuis extends LnmsCommand
|
||||
continue;
|
||||
}
|
||||
|
||||
[$oui, $vendor] = str_getcsv($csv_line, "\t");
|
||||
[$oui, , $vendor] = str_getcsv($csv_line, "\t"); // index 1 = short vendor
|
||||
|
||||
$oui = strtolower(str_replace(':', '', $oui)); // normalize oui
|
||||
$prefix_index = strpos($oui, '/');
|
||||
@@ -119,6 +119,8 @@ class MaintenanceFetchOuis extends LnmsCommand
|
||||
|
||||
$oui = substr($oui, 0, $substring_length);
|
||||
}
|
||||
$vendor = trim($vendor);
|
||||
$oui = trim($oui);
|
||||
|
||||
// Add to the list of vendor ids
|
||||
$ouis[] = [
|
||||
|
Reference in New Issue
Block a user