From e7c46b0fe9d22de2fe008577bcdf0d180958d914 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Wed, 15 Feb 2017 17:35:55 +0000 Subject: [PATCH] newdevice: Additional TPLink JetStream support (#5908) --- includes/definitions/tplink.yaml | 2 +- tests/OSDiscoveryTest.php | 1 + tests/snmpsim/tplink-t1600g-28ts.snmprec | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/snmpsim/tplink-t1600g-28ts.snmprec diff --git a/includes/definitions/tplink.yaml b/includes/definitions/tplink.yaml index 99bdf5e4bc..8352bf4e21 100644 --- a/includes/definitions/tplink.yaml +++ b/includes/definitions/tplink.yaml @@ -6,4 +6,4 @@ over: - { graph: device_bits, text: 'Device Traffic' } discovery: - sysObjectId: - - .1.3.6.1.4.1.11863.1.1 + - .1.3.6.1.4.1.11863. diff --git a/tests/OSDiscoveryTest.php b/tests/OSDiscoveryTest.php index ab36a4b522..bffcb4efff 100644 --- a/tests/OSDiscoveryTest.php +++ b/tests/OSDiscoveryTest.php @@ -1598,6 +1598,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase { $this->checkOS('tplink'); $this->checkOS('tplink', 'tplink1'); + $this->checkOS('tplink', 'tplink-t1600g-28ts'); } public function testTranzeo() diff --git a/tests/snmpsim/tplink-t1600g-28ts.snmprec b/tests/snmpsim/tplink-t1600g-28ts.snmprec new file mode 100644 index 0000000000..c71ed2b2e7 --- /dev/null +++ b/tests/snmpsim/tplink-t1600g-28ts.snmprec @@ -0,0 +1,2 @@ +1.3.6.1.2.1.1.1.0|4|JetStream 24-Port Gigabit Smart Switch with 4 SFP Slots +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.11863.5.28