summaryrefslogtreecommitdiff
path: root/plugins/modules
diff options
context:
space:
mode:
authorShawn Wilsher <656602+sdwilsh@users.noreply.github.com>2021-09-20 16:25:49 -0700
committerGitHub <noreply@github.com>2021-09-20 23:25:49 +0000
commitc2cf82dfea4aa89e5aa9ba57b798bee030a9abbe (patch)
treeee7c09a7e0296c5c2ccf766ceaa8ad71d91da69f /plugins/modules
parent9e829e1b75996b6b8268ab29b105d5dfa97da441 (diff)
downloadvyos.vyos-c2cf82dfea4aa89e5aa9ba57b798bee030a9abbe.tar.gz
vyos.vyos-c2cf82dfea4aa89e5aa9ba57b798bee030a9abbe.zip
Add support for IPv6 `address_group` and `network_group` (#202)
Add support for IPv6 `address_group` and `network_group` SUMMARY This adds support for ipv6 in network and address groups by adding an afi parameter, but defaulting it to ipv4 for backwards compatibility. Fixes #137. ISSUE TYPE Feature Pull Request COMPONENT NAME vyos_firewall_global Reviewed-by: GomathiselviS <None> Reviewed-by: Shawn Wilsher <None> Reviewed-by: None <None>
Diffstat (limited to 'plugins/modules')
-rw-r--r--plugins/modules/vyos_firewall_global.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/modules/vyos_firewall_global.py b/plugins/modules/vyos_firewall_global.py
index 71dc4a6..91d97a9 100644
--- a/plugins/modules/vyos_firewall_global.py
+++ b/plugins/modules/vyos_firewall_global.py
@@ -123,6 +123,15 @@ options:
type: list
elements: dict
suboptions:
+ afi:
+ description:
+ - Specifies IP address type
+ type: str
+ default: ipv4
+ choices:
+ - ipv4
+ - ipv6
+ required: false
name:
description:
- Name of the firewall address group.
@@ -149,6 +158,15 @@ options:
type: list
elements: dict
suboptions:
+ afi:
+ description:
+ - Specifies network address type
+ type: str
+ default: ipv4
+ choices:
+ - ipv4
+ - ipv6
+ required: false
name:
description:
- Name of the firewall network group.