summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/module_utils/network/vyos/argspec/ntp_global/ntp_global.py1
-rw-r--r--plugins/module_utils/network/vyos/rm_templates/ntp_global.py2
-rw-r--r--plugins/modules/vyos_ntp_global.py5
3 files changed, 6 insertions, 2 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}}",
diff --git a/plugins/modules/vyos_ntp_global.py b/plugins/modules/vyos_ntp_global.py
index 6686aa41..d06d8788 100644
--- a/plugins/modules/vyos_ntp_global.py
+++ b/plugins/modules/vyos_ntp_global.py
@@ -51,6 +51,7 @@ DOCUMENTATION = """
choices:
- noselect
- dynamic
+ - pool
- preempt
- prefer
running_config:
@@ -627,7 +628,7 @@ EXAMPLES = """
# # Task
# # -------------
-- name: Gather ntp config
+- name: Render ntp config
vyos.vyos.vyos_ntp_global:
config:
allow_clients:
@@ -642,6 +643,7 @@ EXAMPLES = """
options:
- noselect
- prefer
+ - pool
- server: time1.vyos.net
- server: time2.vyos.net
@@ -660,6 +662,7 @@ EXAMPLES = """
# "set system ntp server server7",
# "set system ntp server server45 noselect",
# "set system ntp server server45 prefer",
+# "set system ntp server server45 pool",
# "set system ntp server time1.vyos.net",
# "set system ntp server time2.vyos.net",
# "set system ntp server time3.vyos.net"