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 042a2b6d2e
commit e3a0a9e4b3
+10 -1
View File
@@ -26,7 +26,7 @@ from typing import Any
from netmiko import ConnectHandler
from netmiko.exceptions import NetmikoTimeoutException, NetmikoAuthenticationException
from napalm_device_types import AccessPointDriver
from napalm_device_types import AccessPointDriver, FingerprintRule
from napalm.base.exceptions import (
ConnectionException,
ConnectionClosedException,
@@ -57,6 +57,15 @@ class OpenWrtDriver(
"""NAPALM driver for OpenWrt routers and access-points."""
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"
def __init__(