mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00:00
newdevice: Added os Discovery for Brocade NOS V4.X and below. (#5158)
This commit is contained in:
parent
6a414498fb
commit
de87fc8a74
@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
$nos_objectid = array(
|
||||
'.1.3.6.1.4.1.1588.2.2.1.1',
|
||||
);
|
||||
|
||||
if (str_contains($sysDescr, array('Brocade VDX', 'BR-VDX', 'VDX67'))) {
|
||||
$os = 'nos';
|
||||
} elseif (starts_with($sysObjectId, $nos_objectid)) {
|
||||
$os = 'nos';
|
||||
}
|
||||
|
||||
unset($nos_objectid);
|
||||
|
@ -962,6 +962,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('nos');
|
||||
$this->checkOS('nos', 'nos1');
|
||||
$this->checkOS('nos', 'nos2');
|
||||
$this->checkOS('nos', 'nos3');
|
||||
}
|
||||
|
||||
public function testNrg()
|
||||
|
2
tests/snmpsim/nos3.snmprec
Normal file
2
tests/snmpsim/nos3.snmprec
Normal file
@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Brocade-VDX-VCS 1
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1588.2.2.1.1
|
Loading…
Reference in New Issue
Block a user