summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authoromnom62 <75066712+omnom62@users.noreply.github.com>2026-08-04 20:03:25 +1000
committerGitHub <noreply@github.com>2026-08-04 20:03:25 +1000
commitd712b495f40d80d5e1963887ba1ce61d32b497be (patch)
treefba8e1c4a264c49a16487ee5505ddb59432f1e4a /plugins
parentdfb0588e51adf524ef82d7bd759f65ecdce6dd43 (diff)
parentfa0e13e1a28d2a1f1653db6767e74bc37acc4a28 (diff)
downloadvyos.vyos-d712b495f40d80d5e1963887ba1ce61d32b497be.tar.gz
vyos.vyos-d712b495f40d80d5e1963887ba1ce61d32b497be.zip
Merge branch 'main' into fix/black-formatting
Diffstat (limited to 'plugins')
-rw-r--r--plugins/modules/vyos_config.py19
-rw-r--r--plugins/modules/vyos_user.py2
-rw-r--r--plugins/modules/vyos_vrf.py4
3 files changed, 15 insertions, 10 deletions
diff --git a/plugins/modules/vyos_config.py b/plugins/modules/vyos_config.py
index 717e1aa2..46e51f3b 100644
--- a/plugins/modules/vyos_config.py
+++ b/plugins/modules/vyos_config.py
@@ -75,7 +75,7 @@ options:
the playbook root directory or role root directory, if playbook is part of an
ansible role. If the directory does not exist, it is created.
type: bool
- default: no
+ default: false
comment:
description:
- Allows a commit description to be specified to be included when the configuration
@@ -115,14 +115,14 @@ options:
description:
- The C(save) argument controls whether or not changes made to the active configuration
are saved to disk. This is independent of committing the config. When set
- to True, the active configuration is saved.
+ to C(true), the active configuration is saved.
type: bool
- default: no
+ default: false
backup_options:
description:
- This is a dict object containing configurable options related to backup file
- path. The value of this option is read only when C(backup) is set to I(yes),
- if C(backup) is set to I(no) this option will be silently ignored.
+ path. The value of this option is read only when C(backup) is set to C(true),
+ if C(backup) is set to C(false) this option will be silently ignored.
suboptions:
filename:
description:
@@ -245,7 +245,9 @@ from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.vyos import
DEFAULT_COMMENT = "configured by vyos_config"
-PASSWORD_NEEDLE = re.compile(r"set system login user \S+ authentication (encrypted|plaintext)-password")
+PASSWORD_NEEDLE = re.compile(
+ r"set system login user \S+ authentication (encrypted|plaintext)-password",
+)
def get_candidate(module):
@@ -392,7 +394,10 @@ def main():
backup=dict(type="bool", default=False),
backup_options=dict(type="dict", options=backup_spec),
save=dict(type="bool", default=False),
- allow_password_change=dict(default="plaintext", choices=["all", "encrypted", "plaintext", "none"])
+ allow_password_change=dict(
+ default="plaintext",
+ choices=["all", "encrypted", "plaintext", "none"],
+ ),
)
mutually_exclusive = [("lines", "src")]
diff --git a/plugins/modules/vyos_user.py b/plugins/modules/vyos_user.py
index 6ca6f0c6..94e2939e 100644
--- a/plugins/modules/vyos_user.py
+++ b/plugins/modules/vyos_user.py
@@ -54,7 +54,7 @@ options:
description:
- The username to be configured on the VyOS device. This argument accepts a string
value and is mutually exclusive with the C(aggregate) argument.
- required: True
+ required: true
type: str
full_name:
description:
diff --git a/plugins/modules/vyos_vrf.py b/plugins/modules/vyos_vrf.py
index 65fb8076..defe24bb 100644
--- a/plugins/modules/vyos_vrf.py
+++ b/plugins/modules/vyos_vrf.py
@@ -65,11 +65,11 @@ options:
type: str
choices: ['ipv4', 'ipv6']
disable_forwarding:
- default: False
+ default: false
description: Disable forwarding for this address family
type: bool
nht_no_resolve_via_default:
- default: False
+ default: false
description: Disable next-hop resolution via default route
type: bool
route_maps: