feat!: report the subscription as a license, not a warning (0.4.0)
CI / test (3.10) (push) Successful in 33s
CI / test (3.11) (push) Successful in 30s
CI / test (3.12) (push) Successful in 35s
CI / test (3.10) (pull_request) Successful in 32s
CI / test (3.11) (pull_request) Successful in 31s
CI / test (3.12) (pull_request) Successful in 34s
CI / test (3.10) (push) Successful in 33s
CI / test (3.11) (push) Successful in 30s
CI / test (3.12) (push) Successful in 35s
CI / test (3.10) (pull_request) Successful in 32s
CI / test (3.11) (pull_request) Successful in 31s
CI / test (3.12) (pull_request) Successful in 34s
get_device_warnings is gone; netOrk names the warnings from facts (netOrk #1111). lldpd and the pending updates were already facts (get_packages, get_available_updates). The subscription is now get_licenses() from napalm-device-types 4.14's LicenseMixin: one pve-subscription entry, the API status mapped to a LicenseStatus. The old check compared against "NotFound" while the API answers "notfound" (seen on all four nodes), so it never fired; the mapping is case-insensitive.
This commit is contained in:
1 parent
8cf334aaf5
commit
1100560f85
5 files changed
+102
-43
No files matched your search
@@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- **Breaking:** `get_device_warnings` is gone; the node reports facts and the caller
|
||||
names the warnings (netOrk #1111). lldpd and the pending updates were already facts
|
||||
(`get_packages`, `get_available_updates`). The subscription is now
|
||||
`get_licenses()` (napalm-device-types 4.14 `LicenseMixin`): one `pve-subscription`
|
||||
entry with the API's status as a `LicenseStatus` (`notfound` → `none`, `new` and
|
||||
`suspended` → `unknown`), its message as `detail`, product name and due date when
|
||||
subscribed. The old check compared against `NotFound` while the API answers
|
||||
`notfound`, so it never fired. Requires napalm-device-types 4.14.0; version 0.4.0.
|
||||
- **Breaking:** `run_device_action` (`fix_snmp`, `install_lldpd`) is gone. The driver
|
||||
implements napalm-device-types 4.13's fix templates: `configure_snmp_agent(settings)`
|
||||
with the caller's community and allowed sources (one `rocommunity` line each, ufw only
|
||||
|
||||
Reference in new issue
Block a user