feat: network controller role and get_vlans_detail, 4.60.0 (NetOrk/netork#2787) #151

Merged
christianmanivong merged 2 commits from feature/network-controller-role into main 2026-12-05 16:20:34 +00:00
2 Commits
Author SHA1 Message Date
christianmanivong 081ef62d22 feat: a managed device names its driver and how to reach it
driver / standard (pull_request) Successful in 22s
driver / lint (pull_request) Successful in 20s
driver / types (pull_request) Successful in 54s
driver / lowest (pull_request) Successful in 53s
driver / test (3.13) (pull_request) Successful in 1m8s
driver / build (pull_request) Successful in 34s
driver / test (3.12) (pull_request) Successful in 1m39s
driver / security (pull_request) Successful in 1m3s
CI / driver (pull_request) Successful in 2m19s
driver / publish (pull_request) Skipped
ManagedDeviceDict gets two optional keys: driver, the entry point that
polls the device, and driver_args, the optional args that reach it through
the controller (never a secret). With them a caller can add a controller's
devices without knowing the vendor (NetOrk/netork#2787).
2026-12-05 17:16:32 +01:00
christianmanivong d5ffb0f0fa feat: network controller role and get_vlans_detail, 4.60.0
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Successful in 24s
driver / types (pull_request) Successful in 1m10s
driver / lowest (pull_request) Successful in 1m3s
driver / test (3.13) (pull_request) Successful in 1m18s
driver / build (pull_request) Successful in 43s
driver / test (3.12) (pull_request) Successful in 2m13s
driver / security (pull_request) Successful in 1m5s
CI / driver (pull_request) Successful in 2m18s
driver / publish (pull_request) Skipped
NetworkControllerDriver (network_controller) is a role for a controller that
manages switches, access points and gateways. It declares
get_managed_devices(), returning ManagedDeviceDict per managed or pending
device; each such device is polled with a driver of its own, so the
controller never reports their ports or neighbours as its own.

SwitchDriver now declares get_vlans_detail() with VlanDetailDict, which
several switch drivers already offered and netOrk's poll already read.

The new shapes live in network_controller_models.py and switch_models.py:
models.py is over the size limit and may not grow.

Refs NetOrk/netork#2787
2026-12-05 17:12:43 +01:00