summaryrefslogtreecommitdiff
path: root/tests/integration/targets
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 /tests/integration/targets
parent9e829e1b75996b6b8268ab29b105d5dfa97da441 (diff)
downloadvyos-ansible-old-c2cf82dfea4aa89e5aa9ba57b798bee030a9abbe.tar.gz
vyos-ansible-old-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 'tests/integration/targets')
-rw-r--r--tests/integration/targets/vyos_firewall_global/vars/main.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_firewall_global/vars/main.yaml b/tests/integration/targets/vyos_firewall_global/vars/main.yaml
index 4a1e7a8..faa0ff1 100644
--- a/tests/integration/targets/vyos_firewall_global/vars/main.yaml
+++ b/tests/integration/targets/vyos_firewall_global/vars/main.yaml
@@ -35,11 +35,13 @@ merged:
- address: 192.0.1.5
description: This group has the Management hosts address list
name: MGMT-HOSTS
+ afi: ipv4
network_group:
- members:
- address: 192.0.1.0/24
description: This group has the Management network addresses
name: MGMT
+ afi: ipv4
log_martians: true
ping:
all: true
@@ -88,11 +90,13 @@ populate:
- address: 192.0.1.1
- address: 192.0.1.3
- address: 192.0.1.5
+ afi: ipv4
network_group:
- name: MGMT
description: This group has the Management network addresses
members:
- address: 192.0.1.0/24
+ afi: ipv4
replaced:
commands:
- delete firewall group address-group MGMT-HOSTS
@@ -116,17 +120,20 @@ replaced:
- address: 192.0.3.2
description: Sales office hosts address list
name: ENG-HOSTS
+ afi: ipv4
- members:
- address: 192.0.2.1
- address: 192.0.2.2
- address: 192.0.2.3
description: Sales office hosts address list
name: SALES-HOSTS
+ afi: ipv4
network_group:
- members:
- address: 192.0.1.0/24
description: This group has the Management network addresses
name: MGMT
+ afi: ipv4
log_martians: true
ping:
all: true
@@ -210,8 +217,10 @@ round_trip:
- address: 192.0.1.1
- address: 192.0.1.3
- address: 192.0.1.5
+ afi: ipv4
network_group:
- name: MGMT
description: This group has the Management network addresses
members:
- address: 192.0.1.0/24
+ afi: ipv4