|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
- name: Configure interface ipv4 address
|
|
|
|
|
eos_l3_interface:
|
|
|
|
|
name: "{{ test_interface_1 }}"
|
|
|
|
|
ipv4: 192.108.0.1/24
|
|
|
|
|
ipv4: 192.108.1.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.108.0.1/24" in result.commands'
|
|
|
|
|
- '"ip address 192.108.1.1/24" in result.commands'
|
|
|
|
|
|
|
|
|
|
- name: Configure interface ipv4 address (idempotent)
|
|
|
|
|
eos_l3_interface:
|
|
|
|
|
name: "{{ test_interface_1 }}"
|
|
|
|
|
ipv4: 192.108.0.1/24
|
|
|
|
|
ipv4: 192.108.1.1/24
|
|
|
|
|
state: present
|
|
|
|
|
authorize: yes
|
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
@ -144,8 +144,8 @@
|
|
|
|
|
- name: Configure ipv4 and ipv6 address using aggregate
|
|
|
|
|
eos_l3_interface:
|
|
|
|
|
aggregate:
|
|
|
|
|
- { 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" }
|
|
|
|
|
- { name: "{{ test_interface_1 }}", ipv4: 192.108.1.1/24, ipv6: "fd5d:12c9:2201:2::2/64" }
|
|
|
|
|
- { name: "{{ test_interface_2 }}", ipv4: 192.109.1.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.108.0.1/24" in result.commands'
|
|
|
|
|
- '"ip address 192.108.1.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.109.0.2/16" in result.commands'
|
|
|
|
|
- '"ip address 192.109.1.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.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" }
|
|
|
|
|
- { name: "{{ test_interface_1 }}", ipv4: 192.108.1.1/24, ipv6: "fd5d:12c9:2201:2::2/64" }
|
|
|
|
|
- { name: "{{ test_interface_2 }}", ipv4: 192.109.1.2/16, ipv6: "fd5e:12c9:2201:3::3/32" }
|
|
|
|
|
authorize: yes
|
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
|
become: yes
|
|
|
|
|