You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible_net_all_ipv6_addresses array is empty even when interfaces with ipv6 addresses are configured. This issue is not replicated on IOS or IOSXR.
#771
Closed
digitalfiend64 opened this issue
Oct 17, 2023
· 1 comment
· Fixed by #854
cisco Nexus3000 C31128PQ-10GE Chassis (Nexus 9000 Series)
version 7.0(3)I7(6)
STEPS TO REPRODUCE
Run the Interface Update Implementation playbook
---
- name: Test ansible_net_all_ipv6_addresses var
hosts: all
gather_facts: no
tasks:
- name: Set IP on interface
cisco.nxos.nxos_l3_interfaces:
config:
- name: interface1
ipv6:
- address: ipv6_address
state: merged
- name: DEBUG v6
debug:
var: ansible_net_all_ipv6_addresses
EXPECTED RESULTS
ansible_net_all_ipv6_addresses should contain IPv6 addresses configured on interfaces.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered:
@digitalfiend64 That playbook shared in this issue doesn't seem to be correct for the stated use case. Firstly, gather_facts is set to no at the play level (it wouldn't have worked anyway because the default subset if min now, which doesn't gather interface facts). Secondly, after the Set IP on interface task executes, there's no fact gathering done. So, the var being debugged in the second task will not exist. The following should work for this situation:
---
- name: Test ansible_net_all_ipv6_addresses varhosts: nxosgather_facts: falsetasks:
- name: Set IP on interfacecisco.nxos.nxos_l3_interfaces:
config:
- name: Ethernet1/2ipv6:
- address: fd5d:12c9:2201:2::1/64state: merged
- name: Gather factscisco.nxos.nxos_facts:
gather_subset: interfaces
- name: DEBUG v6debug:
var: ansible_net_all_ipv6_addresses
Please let me know if this resolves the issue. Thanks!
SUMMARY
ansible_net_all_ipv6_addresses array is empty even when interfaces with ipv6 addresses are configured. This issue is not replicated on IOS or IOSXR.
ISSUE TYPE
COMPONENT NAME
cisco.nxos v5.2.1
ANSIBLE VERSION
Ansible v2.12.6
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
cisco Nexus3000 C31128PQ-10GE Chassis (Nexus 9000 Series)
version 7.0(3)I7(6)
STEPS TO REPRODUCE
EXPECTED RESULTS
ansible_net_all_ipv6_addresses should contain IPv6 addresses configured on interfaces.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: