From 7103cefc416a0917c8847080ec9300e29e2b2415 Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Fri, 21 Aug 2026 12:50:10 +0700 Subject: [PATCH] refactor!: rename get_dot1x_config to get_dot1x_ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SwitchDriver and AccessPointDriver both declared get_dot1x_config, but they meant different things and returned different shapes — Dot1XPortDict per port on a switch, Dot1XConfigDict per SSID on an access point. A device that is both could not satisfy both contracts. napalm-device-types v1.0 names them apart. This is the switch side. BREAKING CHANGE: get_dot1x_config is now get_dot1x_ports on NetgearPlusDriver. --- napalm_netgear/netgear_plus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_netgear/netgear_plus.py b/napalm_netgear/netgear_plus.py index 57783d2..0afcd54 100644 --- a/napalm_netgear/netgear_plus.py +++ b/napalm_netgear/netgear_plus.py @@ -669,7 +669,7 @@ class NetgearPlusDriver(SwitchDriver): """ return {} - def get_dot1x_config(self) -> dict[str, Any]: + def get_dot1x_ports(self) -> dict[str, Any]: """Return 802.1X port configuration. Not available via HTTP API. Returns an empty dict.