From 2b1f6a743d5df37fb659f84e33fb1230dee8ea0d Mon Sep 17 00:00:00 2001 From: pjroehl <128153222+pjroehl@users.noreply.github.com> Date: Mon, 10 Apr 2023 05:12:12 -0400 Subject: [PATCH] Add discovery of NVT Phybridge FLEX24 (#14913) * Add discovery of NVT Phybridge FLEX24 * Update phybridge-flex.yaml Added FLEX-24 Switch under sysDescr * Test Data phybridge-flex_flex-24 json and snmprec --- includes/definitions/phybridge-flex.yaml | 2 ++ tests/data/phybridge-flex_flex-24.json | 23 ++++++++++++++++++++ tests/snmpsim/phybridge-flex_flex-24.snmprec | 7 ++++++ 3 files changed, 32 insertions(+) create mode 100644 tests/data/phybridge-flex_flex-24.json create mode 100644 tests/snmpsim/phybridge-flex_flex-24.snmprec diff --git a/includes/definitions/phybridge-flex.yaml b/includes/definitions/phybridge-flex.yaml index c29b7e608b..9b8c0633f4 100644 --- a/includes/definitions/phybridge-flex.yaml +++ b/includes/definitions/phybridge-flex.yaml @@ -10,7 +10,9 @@ discovery: - sysObjectID: - .1.3.6.1.4.1.8072.3.2.10 + - .1.3.6.1.4.1.54743.1.7 sysDescr: - 'Phybridge FLEX' + - 'FLEX-24 Switch' diff --git a/tests/data/phybridge-flex_flex-24.json b/tests/data/phybridge-flex_flex-24.json new file mode 100644 index 0000000000..9c11122646 --- /dev/null +++ b/tests/data/phybridge-flex_flex-24.json @@ -0,0 +1,23 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.54743.1.7", + "sysDescr": "FLEX-24 Switch", + "sysContact": "", + "version": null, + "hardware": null, + "features": null, + "location": "", + "os": "phybridge-flex", + "type": "network", + "serial": null, + "icon": "phybridge.svg" + } + ] + }, + "poller": "matches discovery" + } +} diff --git a/tests/snmpsim/phybridge-flex_flex-24.snmprec b/tests/snmpsim/phybridge-flex_flex-24.snmprec new file mode 100644 index 0000000000..5b9c0efc1d --- /dev/null +++ b/tests/snmpsim/phybridge-flex_flex-24.snmprec @@ -0,0 +1,7 @@ +1.3.6.1.2.1.1.1.0|4|FLEX-24 Switch +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.54743.1.7 +1.3.6.1.2.1.1.3.0|67|1161787274 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.6.3.10.2.1.3.0|2|11617873