mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merged changes for Zyxel ES and GS series switches under 'Zynos'.
This commit is contained in:
@@ -947,7 +947,7 @@ $config['os'][$os]['text'] = 'ZyXEL Prestige';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'zyxel';
|
||||
|
||||
$os = 'zyxeles';
|
||||
$os = 'zynos';
|
||||
$config['os'][$os]['text'] = 'ZyXEL Ethernet Switch';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'zyxel';
|
||||
|
||||
5
includes/discovery/os/zynos.inc.php
Normal file
5
includes/discovery/os/zynos.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.890') && preg_match('/^(ES|GS)/', $sysDescr))
|
||||
$os = 'zynos';
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (preg_match('/^ES-/', $sysDescr)) {
|
||||
$os = 'zyxeles';
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.890.1.5.8.62') || strstr($sysObjectId, '.1.3.6.1.4.1.890.1.5.8.63'))
|
||||
$os = "zyxeles";
|
||||
}
|
||||
Reference in New Issue
Block a user