From 5fb51d23ea20826738c270dc0e10fcaff144d386 Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Wed, 24 Jun 2026 14:47:08 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Fingerprint-Attribute=20f=C3=BCr=20Disc?= =?UTF-8?q?overy-Scoring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- napalm_linux/linux.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/napalm_linux/linux.py b/napalm_linux/linux.py index bfbd00f..8e8c95f 100644 --- a/napalm_linux/linux.py +++ b/napalm_linux/linux.py @@ -31,7 +31,7 @@ from netmiko.exceptions import ( ) from napalm.base.exceptions import ConnectionException, ConnectionClosedException from napalm.base.netmiko_helpers import netmiko_args -from napalm_device_types import OSDriver +from napalm_device_types import FingerprintRule, OSDriver from napalm_device_types.models import ( ApplyUpdatesResultDict, CronJobDict, @@ -125,6 +125,16 @@ class LinuxDriver(OSDriver): TYPE_LABEL = "Linux" VENDOR = "Linux" + DRIVER_NAME = "linux" + SNMP_FINGERPRINT = [ + FingerprintRule("linux", weight=5.0), + ] + SSH_FINGERPRINT = [ + FingerprintRule("ubuntu", weight=4.0), + FingerprintRule("debian", weight=4.0), + FingerprintRule("alpine", weight=4.0), + FingerprintRule("openssh", weight=1.0), + ] NETMIKO_DEVICE_TYPE = "linux" def __init__(