mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Non-vxworks based Quanta LB6M erroneously gets detected as Ubiquity Edgeswitch. New check for 'Quanta' in sysdescr added.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && !stristr($sysDescr, 'vxworks')) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && (!stristr($sysDescr, 'vxworks') && !stristr($sysDescr, 'Quanta'))) {
|
||||
$os = 'edgeswitch';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && stristr($sysDescr, 'vxworks')) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && (stristr($sysDescr, 'vxworks') || stristr($sysDescr, 'Quanta'))) {
|
||||
$os = 'quanta';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user