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
1bfc8dd245
commit
5fb51d23ea
+11
-1
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user