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:
co-authored by
Claude Sonnet 4.6
parent
232936162e
commit
247964178a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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.
Binary file not shown.
Reference in New Issue
Block a user