feat(firmware): offer the newest release of the line and install it with owut (NetOrk/netork#2615)
get_firmware_offer() looks the device's release line up in the attended sysupgrade server's overview.json, fetched at most once a day per server. start_firmware_upgrade() runs owut upgrade detached from the session, and get_update_progress() follows its log until owut hands the image to sysupgrade.
This commit is contained in:
1 parent
6ff893649c
commit
530f04055c
6 files changed
+582
-2
No files matched your search
+11
-1
@@ -8,7 +8,7 @@ recorded here; their history is the git log.
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- Needs napalm-device-types 4.40.0 or later (`ZabbixAgentMixin`).
|
||||
- Needs napalm-device-types 4.41.0 or later (`FirmwareUpgradeMixin`).
|
||||
- The SNMP agent's firewall step writes its rule through `_allow_in_management_zone`, which
|
||||
the Zabbix agent's step shares; the rule it writes is the same.
|
||||
- `get_available_updates()` raises napalm-device-types' `PackageIndexMissing` when the
|
||||
@@ -19,6 +19,16 @@ recorded here; their history is the git log.
|
||||
a router that commit wrote keeps `use_dhcp=0` until it is set back.
|
||||
|
||||
### Added
|
||||
- Firmware (napalm-device-types `FirmwareOfferMixin`, `FirmwareUpgradeMixin`,
|
||||
NetOrk/netork#2615): `get_firmware_offer()` names the newest release of the device's own
|
||||
release line that the attended sysupgrade server builds for its target (from
|
||||
`/json/v1/overview.json` of the server the device is set to, fetched by the caller at most
|
||||
once a day per server), whether owut can install it (`installable`, from 24.10 on) and the
|
||||
newest later line (`latest_major_version`). `start_firmware_upgrade(version)` runs
|
||||
`owut upgrade --version-to <version>` detached from the session; `get_update_progress()`
|
||||
follows its log until owut hands the image to sysupgrade, which keeps the configuration
|
||||
and restarts the device. A sysupgrade brings every installed package in the new image,
|
||||
which empties the overlay that package upgrades fill.
|
||||
- Zabbix agent (napalm-device-types `ZabbixAgentMixin`, NetOrk/netork#2571):
|
||||
`configure_zabbix_agent(settings)` installs the feed's `zabbix-agentd` after loading the
|
||||
package index, writes the caller's values into `/etc/zabbix_agentd.conf`, enables it in
|
||||
|
||||
Reference in new issue
Block a user