Support Huawei SmartAX products.

Use ifName for display.
ifIndex values exceed 32bit, change ifIndex columnt to bigint
This commit is contained in:
Tony Murray
2016-06-28 14:20:04 -05:00
parent d6ab3feaeb
commit 5f5db66eaa
3 changed files with 39 additions and 0 deletions

View File

@@ -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';

View 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
View File

@@ -0,0 +1 @@
ALTER TABLE `ports` CHANGE `ifIndex` `ifIndex` BIGINT(20) NULL DEFAULT '0';