@ -7,11 +7,15 @@
- set_fact : testint2="{{ nxos_int2 }}"
- set_fact : testint3="{{ nxos_int3 }}"
- set_fact : ipv6_address=""
- set_fact : ipv6_address="33:db::2/8"
when : ipv6_supported
- name : Setup - Remove address from interfaces aggregate
nxos_l3_interface:
aggregate:
- { name : "{{ testint2 }}" , ipv4 : 192.168 .22 .1 /24 }
- { name : "{{ testint3 }}" , ipv4: 192.168.20.1/24, ipv6 : " 33:db::2/8 " }
- { name : "{{ testint3 }}" , ipv4: 192.168.20.1/24, ipv6 : " {{ ipv6_address }} " }
provider : "{{ nxapi }}"
state : absent
ignore_errors : yes
@ -59,7 +63,7 @@
nxos_l3_interface : &conf_agg
aggregate:
- { name : "{{ testint2 }}" , ipv4 : 192.168 .22 .1 /24 }
- { name : "{{ testint3 }}" , ipv4: 192.168.20.1/24, ipv6 : " 33:db::2/8 " }
- { name : "{{ testint3 }}" , ipv4: 192.168.20.1/24, ipv6 : " {{ ipv6_address }} " }
provider : "{{ nxapi }}"
register : result
@ -79,7 +83,7 @@
nxos_l3_interface : &rm_agg
aggregate:
- { name : "{{ testint2 }}" , ipv4 : 192.168 .22 .1 /24 }
- { name : "{{ testint3 }}" , ipv4: 192.168.20.1/24, ipv6 : " 33:db::2/8 " }
- { name : "{{ testint3 }}" , ipv4: 192.168.20.1/24, ipv6 : " {{ ipv6_address }} " }
provider : "{{ nxapi }}"
state : absent
register : result