mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Support Huawei SmartAX products.
Use ifName for display. ifIndex values exceed 32bit, change ifIndex columnt to bigint
This commit is contained in:
@@ -583,6 +583,14 @@ $config['os'][$os]['text'] = 'Huawei VRP';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'huawei';
|
||||
|
||||
// Huawei access products
|
||||
$os = 'smartax';
|
||||
$config['os'][$os]['group'] = 'huawei';
|
||||
$config['os'][$os]['text'] = 'Huawei SmartAX';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'huawei';
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
|
||||
// ZTE
|
||||
$os = 'zxr10';
|
||||
$config['os'][$os]['group'] = 'zxr10';
|
||||
|
||||
30
includes/discovery/os/smartax.inc.php
Normal file
30
includes/discovery/os/smartax.inc.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* smartax.inc.php
|
||||
*
|
||||
* Huawei Access products
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2016 Tony Murray
|
||||
* @author Tony Murray <murraytony@gmail.com>
|
||||
*/
|
||||
|
||||
if (!$os) {
|
||||
if (strpos($sysDescr, 'Huawei Integrated Access Software') !== false) {
|
||||
$os = 'smartax';
|
||||
}
|
||||
}
|
||||
1
sql-schema/119.sql
Normal file
1
sql-schema/119.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `ports` CHANGE `ifIndex` `ifIndex` BIGINT(20) NULL DEFAULT '0';
|
||||
Reference in New Issue
Block a user