feat: public contracts for update progress, DNS forwards and OSPF (4.17.0) #46

Merged
christianmanivong merged 1 commits from feat/opnsense-public-contracts into main 2026-10-18 13:06:08 +00:00
Owner

netOrk followed an OPNsense firmware upgrade, edited Unbound forwards and read OSPF through the driver's private _get/_post (NetOrk/netork#1113). Three declared contracts with neutral shapes:

  • UpdateMixin.get_update_progress() → UpdateProgressDict {state: idle|running|done|failed, log} — for an update apply_updates only starts.
  • DnsForwardMixin: get_dns_forwards() → [DnsForwardDict {domain, server, port, enabled}], set_dns_forward(domain, server, port=53), remove_dns_forward(domain); the driver applies before returning.
  • OspfMixin.get_ospf() → OspfDict {router_id, areas, interfaces: {name: OspfInterfaceDict}}; FRR/Quagga's own format is the driver's to translate, judging it the application's.

All declared only (TYPE_CHECKING), so capability checks stay truthful.

netOrk followed an OPNsense firmware upgrade, edited Unbound forwards and read OSPF through the driver's private `_get`/`_post` (NetOrk/netork#1113). Three declared contracts with neutral shapes: - `UpdateMixin.get_update_progress()` → `UpdateProgressDict {state: idle|running|done|failed, log}` — for an update `apply_updates` only starts. - `DnsForwardMixin`: `get_dns_forwards()` → `[DnsForwardDict {domain, server, port, enabled}]`, `set_dns_forward(domain, server, port=53)`, `remove_dns_forward(domain)`; the driver applies before returning. - `OspfMixin.get_ospf()` → `OspfDict {router_id, areas, interfaces: {name: OspfInterfaceDict}}`; FRR/Quagga's own format is the driver's to translate, judging it the application's. All declared only (TYPE_CHECKING), so capability checks stay truthful.
christianmanivong added 1 commit 2026-10-18 13:02:15 +00:00
feat: public contracts for update progress, DNS forwards and OSPF (4.17.0)
CI / test (3.10) (push) Successful in 35s
CI / test (3.11) (push) Successful in 32s
CI / test (3.12) (push) Successful in 30s
CI / test (3.13) (push) Successful in 27s
CI / test (3.10) (pull_request) Successful in 27s
CI / test (3.11) (pull_request) Successful in 25s
CI / test (3.12) (pull_request) Successful in 26s
CI / test (3.13) (pull_request) Successful in 26s
1dd448e1d3
An application followed a firewall's upgrade, edited its resolver's
forwards and read its OSPF state through the driver's private REST
helpers (NetOrk/netork#1113). Declared contracts, neutral shapes:

- UpdateMixin.get_update_progress() -> UpdateProgressDict {state, log}
  for an update apply_updates only starts.
- DnsForwardMixin: get_dns_forwards(), set_dns_forward(domain, server,
  port), remove_dns_forward(domain); the driver applies.
- OspfMixin.get_ospf() -> OspfDict {router_id, areas, interfaces}; the
  routing daemon's format is the driver's to translate.

All declared only.
christianmanivong merged commit 83cd7db761 into main 2026-10-18 13:06:08 +00:00
christianmanivong deleted branch feat/opnsense-public-contracts 2026-10-18 13:06:08 +00:00
Sign in to join this conversation.