diff options
author | GomathiselviS <gomathiselvi@gmail.com> | 2022-01-19 18:19:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 23:19:45 +0000 |
commit | a4fc3def45320e633a773f2efa453c78d3b4afca (patch) | |
tree | 641aa4561fdb891513979d7794db888685209178 /plugins/module_utils | |
parent | be096e94d2904dd5743abde26253b86fa79f26bb (diff) | |
download | vyos.vyos-a4fc3def45320e633a773f2efa453c78d3b4afca.tar.gz vyos.vyos-a4fc3def45320e633a773f2efa453c78d3b4afca.zip |
Enable configuring ntp server pool in ntp_global (#225)
Enable configuring ntp server pool in ntp_global
Signed-off-by: GomathiselviS gomathiselvi@gmail.com
SUMMARY
Fixes #221
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION
Reviewed-by: Shawn Wilsher <None>
Reviewed-by: None <None>
Diffstat (limited to 'plugins/module_utils')
-rw-r--r-- | plugins/module_utils/network/vyos/argspec/ntp_global/ntp_global.py | 1 | ||||
-rw-r--r-- | plugins/module_utils/network/vyos/rm_templates/ntp_global.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/module_utils/network/vyos/argspec/ntp_global/ntp_global.py b/plugins/module_utils/network/vyos/argspec/ntp_global/ntp_global.py index 63262154..7ace5bb7 100644 --- a/plugins/module_utils/network/vyos/argspec/ntp_global/ntp_global.py +++ b/plugins/module_utils/network/vyos/argspec/ntp_global/ntp_global.py @@ -47,6 +47,7 @@ class Ntp_globalArgs(object): # pylint: disable=R0903 "choices": [ "noselect", "dynamic", + "pool", "preempt", "prefer", ], diff --git a/plugins/module_utils/network/vyos/rm_templates/ntp_global.py b/plugins/module_utils/network/vyos/rm_templates/ntp_global.py index ac0bcbbf..f4589a29 100644 --- a/plugins/module_utils/network/vyos/rm_templates/ntp_global.py +++ b/plugins/module_utils/network/vyos/rm_templates/ntp_global.py @@ -112,7 +112,7 @@ class NtpTemplate(NetworkTemplate): r""" ^set\ssystem\sntp\sserver \s(?P<name>\S+) - \s(?P<options>noselect|dynamic|preempt|prefer)? + \s(?P<options>noselect|dynamic|pool|preempt|prefer)? $""", re.VERBOSE), "setval": "system ntp server {{server}} {{options}}", |