mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
committed by
Søren Rosiak
parent
6a74d5d7ce
commit
c8a77fb73e
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,4 @@
|
||||
os: jetstream
|
||||
text: 'TP-Link JetStream'
|
||||
type: network
|
||||
icon: tplink
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* jetstream.inc.php
|
||||
*
|
||||
* LibreNMS os discovery module for JetStream
|
||||
*
|
||||
* 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 Neil Lathwood
|
||||
* @author Neil Lathwood <[email protected]>
|
||||
*/
|
||||
|
||||
$jetstream = array(
|
||||
'.1.3.6.1.4.1.11863.5.34'
|
||||
);
|
||||
|
||||
if (starts_with($sysObjectId, $jetstream)) {
|
||||
$os = 'jetstream';
|
||||
}
|
||||
|
||||
unset($jetstream);
|
||||
@@ -761,6 +761,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('jetdirect', 'jetdirect2');
|
||||
}
|
||||
|
||||
public function testJetstream()
|
||||
{
|
||||
$this->checkOS('jetstream');
|
||||
}
|
||||
|
||||
public function testJuniperex2500os()
|
||||
{
|
||||
$this->checkOS('juniperex2500os');
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|JetStream 48-Port Gigabit L2 Managed Switch with 4 SFP Slots
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.11863.5.34
|
||||
Reference in New Issue
Block a user