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
042a2b6d2e
commit
e3a0a9e4b3
@@ -26,7 +26,7 @@ from typing import Any
|
|||||||
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 AccessPointDriver
|
from napalm_device_types import AccessPointDriver, FingerprintRule
|
||||||
from napalm.base.exceptions import (
|
from napalm.base.exceptions import (
|
||||||
ConnectionException,
|
ConnectionException,
|
||||||
ConnectionClosedException,
|
ConnectionClosedException,
|
||||||
@@ -57,6 +57,15 @@ class OpenWrtDriver(
|
|||||||
"""NAPALM driver for OpenWrt routers and access-points."""
|
"""NAPALM driver for OpenWrt routers and access-points."""
|
||||||
|
|
||||||
VENDOR = "OpenWrt"
|
VENDOR = "OpenWrt"
|
||||||
|
DRIVER_NAME = "openwrt"
|
||||||
|
SSH_FINGERPRINT = [
|
||||||
|
FingerprintRule("dropbear", weight=10.0, mandatory=True),
|
||||||
|
]
|
||||||
|
HTTP_FINGERPRINT = [
|
||||||
|
FingerprintRule("luci", weight=8.0, mandatory=True),
|
||||||
|
FingerprintRule("lua configuration", weight=6.0),
|
||||||
|
FingerprintRule("openwrt", weight=6.0),
|
||||||
|
]
|
||||||
NETMIKO_DEVICE_TYPE = "linux"
|
NETMIKO_DEVICE_TYPE = "linux"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|||||||
Reference in New Issue
Block a user