From 891203729c66fcbaa67925cb8c5b440eb8bbdb94 Mon Sep 17 00:00:00 2001 From: Luca Haneklau Date: Mon, 2 Aug 2021 14:55:14 +0200 Subject: [PATCH] improved vyos_config smart diffing documentation --- plugins/modules/vyos_config.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/plugins/modules/vyos_config.py b/plugins/modules/vyos_config.py index 136b7b83..f5f03031 100644 --- a/plugins/modules/vyos_config.py +++ b/plugins/modules/vyos_config.py @@ -62,11 +62,10 @@ matched against the active config and the deltas are loaded line by line. If the C(match) argument is set to C(none) the active configuration is ignored and the configuration is always loaded. If the C(match) argument is set to - C(smart) both the active configuration and the target configuration are simlulated - and the results compared to bring the target device into a reliable and - reproducable state. Using C(smart), the special value C(...) indicates that - this keys value should not be changed and any preexisting siblings should not - be removed from the target. + C(smart) the active configuration and the target configuration are compared + and differences are added to or removed from the target. Using C(smart), the + special value C(...) indicates that this value should not be changed and its + siblings should not be removed from the target. type: str default: line choices: @@ -217,9 +216,7 @@ DEFAULT_COMMENT = "configured by vyos_config" -CONFIG_FILTERS = [ - re.compile(r"set system login user \S+ authentication encrypted-password") -] +CONFIG_FILTERS = [] def get_candidate(module):