refactor!: rename get_dot1x_config to get_dot1x_ports

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.
This commit is contained in:
Christian Manivong
2026-08-21 12:50:10 +07:00
parent efe004a295
commit 7103cefc41
+1 -1
View File
@@ -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.