Page MenuHomeVyOS Platform

vyconf: add locking and invocation of pre/post-commit hooks
Closed, ResolvedPublicENHANCEMENT

Description

Commit pre- and post-hooks will be called from the Python vyconf_session.commit function, as a proper separation of concerns.
Those calls will be protected by a lockf/fcntl lock consistent with the legacy locking mechanism; when all remaining references to the legacy lock file are removed, this can be migrated to use the BSD-type lock of vyos.utils.locking.

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

Locking added in PR
https://github.com/vyos/vyos-1x/pull/4505

pre/post-commit hooks tested but will not be added until update of config_mgmt system for vyconf-aware operation, cf. subtask.

jestabro moved this task from Need Triage to Completed on the VyOS Rolling board.