diff --git a/bindep.txt b/bindep.txt index f1d23492..da51495b 100644 --- a/bindep.txt +++ b/bindep.txt @@ -1,10 +1,10 @@ # This is a cross-platform list tracking distribution packages needed by tests; # see https://docs.openstack.org/infra/bindep/ for additional information. gcc-c++ [doc test platform:rpm] -libssh-devel [test platform:rpm] -libssh-dev [platform:dpkg] -libssh-devel [platform:rpm] +#libssh-devel [test platform:rpm] +#libssh-dev [platform:dpkg] +#libssh-devel [platform:rpm] libffi-devel [test platform:rpm] openssl-devel [test platform:rpm] -libssh-dev [compile test platform:rpm] +#libssh-dev [compile test platform:rpm] diff --git a/changelogs/fragments/t6837-vyos_config-replace.yml b/changelogs/fragments/t6837-vyos_config-replace.yml new file mode 100644 index 00000000..9a0ff2b8 --- /dev/null +++ b/changelogs/fragments/t6837-vyos_config-replace.yml @@ -0,0 +1,19 @@ +--- +minor_changes: + - vyos_config - added a new ``replace`` option value, ``config`` (in addition + to the existing default, ``line``). When set to ``replace=config``, the + module uploads the complete candidate configuration supplied via ``src`` + to the device and issues VyOS's native ``load`` command in configuration + mode, letting VyOS's own configuration engine perform the replacement, + rather than the module computing a set/delete command diff. This mirrors + the mechanism offered by ``cisco.iosxr.iosxr_config``'s ``replace=config`` + (https://vyos.dev/T6837). +bugfixes: + - vyos_config - the ``allow_password_change`` filter used a regular + expression that only matched ``set`` lines + (``set system login user ... authentication (encrypted|plaintext)-password``), + so a ``delete`` line for the same path was never filtered regardless of + the ``allow_password_change`` value. This meant an account omitted from a + full-config candidate could have its password deleted without the + existing safety filter ever inspecting the line. The regular expression + now matches both ``set`` and ``delete`` lines. diff --git a/docs/vyos.vyos.vyos_config_module.rst b/docs/vyos.vyos.vyos_config_module.rst index bf91bb0f..d1b1c7b0 100644 --- a/docs/vyos.vyos.vyos_config_module.rst +++ b/docs/vyos.vyos.vyos_config_module.rst @@ -1,458 +1,511 @@ .. _vyos.vyos.vyos_config_module: ********************* vyos.vyos.vyos_config ********************* **Manage VyOS configuration on remote device** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - This module provides configuration file management of VyOS devices. It provides arguments for managing both the configuration file and state of the active configuration. All configuration statements are based on `set` and `delete` commands in the device configuration. Parameters ---------- .. raw:: html