ansible-collections / cisco.nxos

Ansible Network Collection for Cisco NXOS
GNU General Public License v3.0
115 stars 109 forks source link

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 closed 4 months ago

digitalfiend64 commented 11 months ago
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
# /home/<username>/.ansible/collections/ansible_collections
Collection Version
---------- -------
cisco.nxos 4.4.0
CONFIGURATION
DEFAULT_LOAD_CALLBACK_PLUGINS(/home/<username>/.ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/home/<username>/.ansible.cfg) = yaml
DEFAULT_TIMEOUT(/home/<username>/.ansible.cfg) = 120
DEPRECATION_WARNINGS(/home/<username>/.ansible.cfg) = False
GALAXY_IGNORE_CERTS(/home/<username>/.ansible.cfg) = True
GALAXY_SERVER_LIST(/home/<username>/.ansible.cfg) = ['inbound_yeti_repo', 'published_repo', 'rh-certified_repo']
HOST_KEY_CHECKING(/home/<username>/.ansible.cfg) = False
PARAMIKO_HOST_KEY_AUTO_ADD(/home/<username>/.ansible.cfg) = True
PERSISTENT_COMMAND_TIMEOUT(/home/<username>/.ansible.cfg) = 300
PERSISTENT_CONNECT_TIMEOUT(/home/<username>/.ansible.cfg) = 120
RETRY_FILES_ENABLED(/home/<username>/.ansible.cfg) = False
OS / ENVIRONMENT

cisco Nexus3000 C31128PQ-10GE Chassis (Nexus 9000 Series) version 7.0(3)I7(6)

STEPS TO REPRODUCE
  1. 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