Page MenuHomeVyOS Platform

op-mode: create generic service restart helper to work with the API
Closed, ResolvedPublicFEATURE REQUEST

Description

Right now we have multiple restart helpers (e.g. dhcp server, ssh, ntp) that all do the same:

  • Check if service is configured on CLI
  • Restart if configured
  • Error out if unconfigured

This is not available via the op-mode API. Create a new restart.py op-mode helper that takes the service name and possible VRF as argument so it's also exposed via API.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)

Event Timeline

dmbaturin triaged this task as Normal priority.Jul 15 2024, 6:32 AM
dmbaturin added a project: VyOS Rolling.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin changed Issue type from Unspecified (please specify) to Internal change (not visible to end users).
c-po changed the task status from Open to In progress.Jul 16 2024, 8:06 AM
c-po claimed this task.