TPLINK - Refactor HW discovery (#12105)

* refactor tplink hw and version

* tests
This commit is contained in:
PipoCanaja
2020-09-18 16:43:51 +02:00
committed by GitHub
parent 941037e44e
commit f32e91a46c
4 changed files with 3322 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
modules:
os:
hardware: RMON-MIB::rmon.19.3.0
version: RMON-MIB::rmon.19.2.0

View File

@@ -1,4 +0,0 @@
<?php
$version = trim(snmp_get($device, 'RMON-MIB::rmon.19.2.0', '-Ovq'), '"');
$hardware = trim(snmp_get($device, 'RMON-MIB::rmon.19.3.0', '-Ovq'), '"');