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
114aaa90f8
commit
b03f3073d5
@@ -27,7 +27,7 @@ import netaddr
|
|||||||
from netmiko import ConnectHandler
|
from netmiko import ConnectHandler
|
||||||
from netmiko.exceptions import NetmikoTimeoutException, NetmikoAuthenticationException
|
from netmiko.exceptions import NetmikoTimeoutException, NetmikoAuthenticationException
|
||||||
|
|
||||||
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_device_types.models import InterfaceConfigDict, VlanConfigDict
|
||||||
from napalm.base import helpers as napalm_helpers
|
from napalm.base import helpers as napalm_helpers
|
||||||
from napalm.base.exceptions import (
|
from napalm.base.exceptions import (
|
||||||
@@ -45,6 +45,15 @@ class TPLinkJetstreamDriver(ConfigLifecycleMixin, SwitchDriver):
|
|||||||
"""NAPALM driver for TP-Link Jetstream managed switches."""
|
"""NAPALM driver for TP-Link Jetstream managed switches."""
|
||||||
|
|
||||||
VENDOR = "TP-Link"
|
VENDOR = "TP-Link"
|
||||||
|
DRIVER_NAME = "tplink_jetstream"
|
||||||
|
HTTP_FINGERPRINT = [
|
||||||
|
FingerprintRule("jetstream", weight=8.0, mandatory=True),
|
||||||
|
FingerprintRule("tp-link", weight=5.0),
|
||||||
|
FingerprintRule("tplink", weight=5.0),
|
||||||
|
FingerprintRule("t1600", weight=6.0),
|
||||||
|
FingerprintRule("t2600", weight=6.0),
|
||||||
|
FingerprintRule("web switch", weight=4.0),
|
||||||
|
]
|
||||||
# Netmiko device type for TP-Link Jetstream
|
# Netmiko device type for TP-Link Jetstream
|
||||||
NETMIKO_DEVICE_TYPE = "tplink_jetstream"
|
NETMIKO_DEVICE_TYPE = "tplink_jetstream"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user