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__(