zte zxr10 support from devolish

git-svn-id: http://www.observium.org/svn/observer/trunk@2750 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong 2011-12-02 10:31:32 +00:00
parent bafb299bb0
commit 998d1605a1
4 changed files with 25 additions and 0 deletions

BIN
html/images/os/zte.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

View File

@ -0,0 +1,8 @@
<?php
if (!$os)
{
if (preg_match("/^ZXR10/", $sysDescr)) { $os = "zxr10"; }
}
?>

View File

@ -0,0 +1,9 @@
<?php
list($version) = explode(',', $poll_device['sysDescr']);
preg_match('/Version V(\S+) (.+) Software,/', $poll_device['sysDescr'], $matches);
$hardware = $matches[2];
?>

View File

@ -268,6 +268,14 @@ $config['os'][$os]['text'] = "Huawei VRP";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['icon'] = "huawei";
## ZTE
$os = "zxr10";
$config['os'][$os]['group'] = "zxr10";
$config['os'][$os]['text'] = "ZTE ZXR10";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['icon'] = "zte";
# Juniper
$os = "junos";