diff --git a/napalm_openwrt/openwrt.py b/napalm_openwrt/openwrt.py index dbc11f5..33a75d5 100644 --- a/napalm_openwrt/openwrt.py +++ b/napalm_openwrt/openwrt.py @@ -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__(