feat: Fingerprint-Attribute für Discovery-Scoring

Ergänzt DRIVER_NAME, HTTP_FINGERPRINT, SNMP_FINGERPRINT, SSH_FINGERPRINT,
PORT_SPECS und SNMP_OBJECT_ID_PREFIX gemäß docs/DISCOVERY_FINGERPRINTING.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Manivong
2026-06-24 14:47:08 +02:00
co-authored by Claude Sonnet 4.6
parent 232936162e
commit 247964178a
8 changed files with 13 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+13 -1
View File
@@ -27,7 +27,7 @@ from netmiko.exceptions import (
NetmikoAuthenticationException,
NetmikoTimeoutException,
)
from napalm_device_types import ConfigLifecycleMixin, SwitchDriver
from napalm_device_types import ConfigLifecycleMixin, FingerprintRule, SwitchDriver
from napalm_device_types.models import InterfaceConfigDict, VlanConfigDict
from napalm.base import helpers as napalm_helpers
from napalm.base.exceptions import (
@@ -78,6 +78,18 @@ class ProcurveDriver(ConfigLifecycleMixin, SwitchDriver):
"""
VENDOR = "HPE"
DRIVER_NAME = "procurve"
SNMP_OBJECT_ID_PREFIX = "1.3.6.1.4.1.11"
SSH_FINGERPRINT = [
FingerprintRule("hp", weight=5.0),
FingerprintRule("aruba", weight=4.0),
]
HTTP_FINGERPRINT = [
FingerprintRule("hp procurve", weight=8.0, mandatory=True),
FingerprintRule("procurve", weight=6.0),
FingerprintRule("ehttp", weight=5.0),
FingerprintRule("comware", weight=5.0),
]
NETMIKO_DEVICE_TYPE = "hp_procurve"
NETMIKO_DEVICE_TYPE_TELNET = "hp_procurve_telnet"
Binary file not shown.
Binary file not shown.