newdevice: Updated zxr10 device support #4380 (#4381)

* newdevice: Updated zxr10 device support #4380

* Space :(
This commit is contained in:
Neil Lathwood
2016-09-09 18:10:58 +01:00
committed by Tony Murray
parent 7ff35ca6ef
commit 66bc0a7826
2 changed files with 8 additions and 0 deletions

View File

@@ -4,4 +4,7 @@ if (!$os) {
if (preg_match('/^ZXR10/', $sysDescr)) {
$os = 'zxr10';
}
if (str_contains($sysDescr, "ZTE Ethernet Switch")) {
$os = 'zxr10';
}
}

View File

@@ -182,4 +182,9 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
);
$this->checkOS('unifi', 'Linux', '.1.3.6.1.4.1.10002.1', $mockSnmp);
}
public function testZxr10()
{
$this->checkOS('zxr10', 'ZTE Ethernet Switch ZXR10 5250-52TM-H, Version: V2.05.11B23');
}
}