feat: restart the firewall (reboot_host) #9

Merged
christianmanivong merged 1 commits from feat/reboot-host into master 2026-10-06 11:05:44 +00:00
Owner

netOrk asks a driver for reboot_host before it offers a restart. The OPNsense driver had none, so netOrk could not restart a firewall (netOrk #637).

Change

reboot_host asks the firmware API: POST /api/core/firmware/reboot. A refusal raises RuntimeError.

Verification

  • pytest tests/: 301 tests pass, including TestRebootHost:
    • the API is asked;
    • a refusal raises.
  • ruff: 0 findings before and after. mypy: the same 17 pre-existing errors before and after.
netOrk asks a driver for `reboot_host` before it offers a restart. The OPNsense driver had none, so netOrk could not restart a firewall (netOrk #637). ## Change `reboot_host` asks the firmware API: `POST /api/core/firmware/reboot`. A refusal raises `RuntimeError`. ## Verification - `pytest tests/`: 301 tests pass, including `TestRebootHost`: - the API is asked; - a refusal raises. - ruff: 0 findings before and after. mypy: the same 17 pre-existing errors before and after.
christianmanivong added 1 commit 2026-10-06 11:05:38 +00:00
feat: restart the firewall (reboot_host)
CI / test (3.10) (push) Successful in 36s
CI / test (3.11) (push) Successful in 30s
CI / test (3.12) (push) Successful in 34s
CI / test (3.10) (pull_request) Successful in 33s
CI / test (3.11) (pull_request) Successful in 33s
CI / test (3.12) (pull_request) Successful in 33s
a6c1d77791
netOrk asks a driver for reboot_host before it offers a restart, and the
OPNsense driver had none, so a firewall could not be restarted from netOrk
(netOrk #637). reboot_host asks the firmware API (POST
/api/core/firmware/reboot); a refusal raises.
christianmanivong merged commit 8ce7ea52e7 into master 2026-10-06 11:05:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-opnsense#9