feat: public methods for the upgrade, Unbound forwards and OSPF (0.4.0) #23

Merged
christianmanivong merged 1 commits from feat/public-contracts-1113 into master 2026-10-18 13:14:03 +00:00
Owner

What netOrk reached through the private _get/_post (NetOrk/netork#1113), as napalm-device-types 4.17 contracts (NAPALM/napalm-device-types#46):

  • Upgrade: apply_updates(packages) now passes the packages (upgrade_packages) — it dropped them and always upgraded everything; get_update_progress() → {state: idle|running|done|failed, log} from firmware/upgradestatus.
  • Unbound forwards (resolver_mixin.py): get_dns_forwards() (forward rows only, not DoT servers), set_dns_forward(domain, server, port) — an existing forward of the domain is changed instead of a second one added — and remove_dns_forward(domain); each applies with service/reconfigure, a refusal raises.
  • OSPF (ospf_mixin.py): get_ospf() translates the os-frr diagnostics into {router_id, areas, interfaces}.

Requires napalm-device-types >= 4.17.0.

Part of #16

What netOrk reached through the private `_get`/`_post` (NetOrk/netork#1113), as napalm-device-types 4.17 contracts (NAPALM/napalm-device-types#46): - **Upgrade:** `apply_updates(packages)` now passes the packages (`upgrade_packages`) — it dropped them and always upgraded everything; `get_update_progress()` → `{state: idle|running|done|failed, log}` from `firmware/upgradestatus`. - **Unbound forwards** (`resolver_mixin.py`): `get_dns_forwards()` (forward rows only, not DoT servers), `set_dns_forward(domain, server, port)` — an existing forward of the domain is changed instead of a second one added — and `remove_dns_forward(domain)`; each applies with `service/reconfigure`, a refusal raises. - **OSPF** (`ospf_mixin.py`): `get_ospf()` translates the os-frr diagnostics into `{router_id, areas, interfaces}`. Requires napalm-device-types >= 4.17.0. Part of #16
christianmanivong added 1 commit 2026-10-18 13:07:28 +00:00
feat: public methods for the upgrade, Unbound forwards and OSPF (0.4.0)
CI / test (3.10) (push) Successful in 31s
CI / test (3.11) (push) Successful in 29s
CI / test (3.12) (push) Successful in 31s
CI / test (3.10) (pull_request) Successful in 31s
CI / test (3.11) (pull_request) Successful in 28s
CI / test (3.12) (pull_request) Successful in 30s
fc4658f016
netOrk reached these through the private _get/_post (netOrk #1113); they
are napalm-device-types 4.17's contracts now:

- apply_updates passes the packages it is given (it dropped them) and
  get_update_progress reports the upgrade's state and log.
- get_dns_forwards, set_dns_forward (an existing forward of the domain
  is changed, not doubled) and remove_dns_forward, each applied with a
  reconfigure; a refusal is raised.
- get_ospf translates FRR's diagnostics into neutral terms.

Requires napalm-device-types 4.17.0.
christianmanivong force-pushed feat/public-contracts-1113 from 7dccd0d1f8 to fc4658f016 2026-10-18 13:07:28 +00:00 Compare
christianmanivong merged commit 6a91f43fc3 into master 2026-10-18 13:14:03 +00:00
christianmanivong deleted branch feat/public-contracts-1113 2026-10-18 13:14:03 +00:00
Sign in to join this conversation.