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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
netOrk asks a driver for
reboot_hostbefore it offers a restart. The OPNsense driver had none, so netOrk could not restart a firewall (netOrk #637).Change
reboot_hostasks the firmware API:POST /api/core/firmware/reboot. A refusal raisesRuntimeError.Verification
pytest tests/: 301 tests pass, includingTestRebootHost: