From 0e4a6b8a8d85426092ebd65eb1d9726f9328dbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Sun, 27 Oct 2024 22:24:35 +0100 Subject: [PATCH] Fix issue #1339 (#1346) * Add name to options of fhrp_group * Add doc and fragment --- changelogs/fragments/1339-name-to-fhrp-group.yml | 2 ++ plugins/modules/netbox_fhrp_group.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/1339-name-to-fhrp-group.yml diff --git a/changelogs/fragments/1339-name-to-fhrp-group.yml b/changelogs/fragments/1339-name-to-fhrp-group.yml new file mode 100644 index 00000000..aa2855c3 --- /dev/null +++ b/changelogs/fragments/1339-name-to-fhrp-group.yml @@ -0,0 +1,2 @@ +minor_changes: + - Add name as option to netbox_fhrp_group diff --git a/plugins/modules/netbox_fhrp_group.py b/plugins/modules/netbox_fhrp_group.py index c142924b..377dbada 100644 --- a/plugins/modules/netbox_fhrp_group.py +++ b/plugins/modules/netbox_fhrp_group.py @@ -33,6 +33,11 @@ description: - Defines the FHRP group configuration suboptions: + name: + description: + - Name of the FHRP group + type: str + version_added: '3.21.0' protocol: description: - Protocol @@ -142,6 +147,7 @@ def main(): type="dict", required=True, options=dict( + name=dict(type="str"), protocol=dict( type="str", choices=[