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
This commit is contained in:
christianmanivong committed 2026-12-05 17:12:43 +01:00
1 parent 70a8195f7e
commit d5ffb0f0fa
12 files changed
+297 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ application SNMP polling, ping sweeps, discovery scoring, guest
| Kind | Rule | Modules |
|---|---|---|
| **Role** | Declares only, under `TYPE_CHECKING`. No runtime method. | `access_point`, `switch`, `firewall`, `hypervisor`, `os`, `storage`, `phone`, `media`, `residential_gateway`, `management_controller`, `backup_server` |
| **Role** | Declares only, under `TYPE_CHECKING`. No runtime method. | `access_point`, `switch`, `firewall`, `hypervisor`, `os`, `storage`, `phone`, `media`, `residential_gateway`, `management_controller`, `network_controller`, `backup_server` |
| **Capability** | Declares only. | `packages`, `services`, `updates`, `nat_vpn`, `mac_acl`, `config_lifecycle`, `interface_filter`, `host_reboot`, `dhcp_leases`, `wireless_writes`, `ap_config`, `host_storage` |
| **Template** | A concrete method that runs a fixed sequence of abstract steps. A driver implements the steps, or overrides the whole method when its device does it in one go. All values come from the caller. | the fix routines below |
| **Contract types** | Interfaces and data shapes other packages implement or fill. | `CommandChannelMixin`, `CommandResult`, `ByteStream`; the declaration of `ContainerEngineMixin`; the reader mixins' public method declarations; the SNMP profile type; `models` |