mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix eos_l3_integration test failures (#34538)
This commit is contained in:
parent
b7bf98cd3a
commit
8e1671f3c5
1 changed files with 15 additions and 15 deletions
|
@ -18,7 +18,7 @@
|
|||
- name: Configure interface ipv4 address
|
||||
eos_l3_interface:
|
||||
name: "{{ test_interface_1 }}"
|
||||
ipv4: 192.168.0.1/24
|
||||
ipv4: 192.108.0.1/24
|
||||
state: present
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
|
@ -29,12 +29,12 @@
|
|||
that:
|
||||
- 'result.changed == true'
|
||||
- '"interface {{ test_interface_1 }}" in result.commands'
|
||||
- '"ip address 192.168.0.1/24" in result.commands'
|
||||
- '"ip address 192.108.0.1/24" in result.commands'
|
||||
|
||||
- name: Configure interface ipv4 address (idempotent)
|
||||
eos_l3_interface:
|
||||
name: "{{ test_interface_1 }}"
|
||||
ipv4: 192.168.0.1/24
|
||||
ipv4: 192.108.0.1/24
|
||||
state: present
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
|
@ -48,7 +48,7 @@
|
|||
- name: Change interface ipv4 address
|
||||
eos_l3_interface:
|
||||
name: "{{ test_interface_1 }}"
|
||||
ipv4: 197.168.0.1/24
|
||||
ipv4: 197.108.0.1/24
|
||||
state: present
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
|
@ -59,7 +59,7 @@
|
|||
that:
|
||||
- 'result.changed == true'
|
||||
- '"interface {{ test_interface_1 }}" in result.commands'
|
||||
- '"ip address 197.168.0.1/24" in result.commands'
|
||||
- '"ip address 197.108.0.1/24" in result.commands'
|
||||
|
||||
- name: Configure interface ipv6 address
|
||||
eos_l3_interface:
|
||||
|
@ -144,8 +144,8 @@
|
|||
- name: Configure ipv4 and ipv6 address using aggregate
|
||||
eos_l3_interface:
|
||||
aggregate:
|
||||
- { name: "{{ test_interface_1 }}", ipv4: 192.161.0.1/24, ipv6: "fd5d:12c9:2201:2::2/64" }
|
||||
- { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
|
||||
- { name: "{{ test_interface_1 }}", ipv4: 192.108.0.1/24, ipv6: "fd5d:12c9:2201:2::2/64" }
|
||||
- { name: "{{ test_interface_2 }}", ipv4: 192.109.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
become: yes
|
||||
|
@ -155,17 +155,17 @@
|
|||
that:
|
||||
- 'result.changed == true'
|
||||
- '"interface {{ test_interface_1 }}" in result.commands'
|
||||
- '"ip address 192.161.0.1/24" in result.commands'
|
||||
- '"ip address 192.108.0.1/24" in result.commands'
|
||||
- '"ipv6 address fd5d:12c9:2201:2::2/64" in result.commands'
|
||||
- '"interface {{ test_interface_2 }}" in result.commands'
|
||||
- '"ip address 192.162.0.2/16" in result.commands'
|
||||
- '"ip address 192.109.0.2/16" in result.commands'
|
||||
- '"ipv6 address fd5e:12c9:2201:3::3/32" in result.commands'
|
||||
|
||||
- name: Configure ipv4 and ipv6 address using aggregate (idempotent)
|
||||
eos_l3_interface:
|
||||
aggregate:
|
||||
- { name: "{{ test_interface_1 }}", ipv4: 192.161.0.1/24, ipv6: "fd5d:12c9:2201:2::2/64" }
|
||||
- { name: "{{ test_interface_2 }}", ipv4: 192.162.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
|
||||
- { name: "{{ test_interface_1 }}", ipv4: 192.108.0.1/24, ipv6: "fd5d:12c9:2201:2::2/64" }
|
||||
- { name: "{{ test_interface_2 }}", ipv4: 192.109.0.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
become: yes
|
||||
|
@ -178,8 +178,8 @@
|
|||
- name: Change ipv4 and ipv6 address using aggregate
|
||||
eos_l3_interface:
|
||||
aggregate:
|
||||
- { name: "{{ test_interface_1 }}", ipv4: 193.167.1.1/8, ipv6: "fd5a:12c9:2201:4::4/32" }
|
||||
- { name: "{{ test_interface_2 }}", ipv4: 192.169.2.2/24, ipv6: "fd5b:12c9:2201:5::5/90" }
|
||||
- { name: "{{ test_interface_1 }}", ipv4: 193.118.1.1/8, ipv6: "fd5a:12c9:2201:4::4/32" }
|
||||
- { name: "{{ test_interface_2 }}", ipv4: 192.119.2.2/24, ipv6: "fd5b:12c9:2201:5::5/90" }
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
become: yes
|
||||
|
@ -189,10 +189,10 @@
|
|||
that:
|
||||
- 'result.changed == true'
|
||||
- '"interface {{ test_interface_1 }}" in result.commands'
|
||||
- '"ip address 193.167.1.1/8" in result.commands'
|
||||
- '"ip address 193.118.1.1/8" in result.commands'
|
||||
- '"ipv6 address fd5a:12c9:2201:4::4/32" in result.commands'
|
||||
- '"interface {{ test_interface_2 }}" in result.commands'
|
||||
- '"ip address 192.169.2.2/24" in result.commands'
|
||||
- '"ip address 192.119.2.2/24" in result.commands'
|
||||
- '"ipv6 address fd5b:12c9:2201:5::5/90" in result.commands'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue