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
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).
This commit is contained in:
1 parent
d5ffb0f0fa
commit
081ef62d22
4 files changed
+26
-4
No files matched your search
@@ -52,7 +52,9 @@ own, `NetworkControllerDriver` (`network_controller`), reached over its API
|
||||
(`USES_SSH = False`). It is not the switches, access points and gateways it manages:
|
||||
`get_managed_devices` reports *which* devices it manages (`ManagedDeviceDict`: MAC, name,
|
||||
model, role, state, site, address, and where known serial and firmware), and each of them is
|
||||
polled as a device of its own with its own driver. Its `get_interfaces`,
|
||||
polled as a device of its own with its own driver. Where the controller knows that driver, it
|
||||
names it (`driver`) with the optional args that reach the device through the controller
|
||||
(`driver_args`, never a secret); the caller links the controller's credential to the child. Its `get_interfaces`,
|
||||
`get_lldp_neighbors` and `get_mac_address_table` are the controller's own, never its
|
||||
children's (NetOrk/netork#2787).
|
||||
|
||||
|
||||
Reference in new issue
Block a user