diff --git a/lib/ansible/modules/network/nxos/nxos_facts.py b/lib/ansible/modules/network/nxos/nxos_facts.py index b4a8ddfe8f..e27ada941b 100644 --- a/lib/ansible/modules/network/nxos/nxos_facts.py +++ b/lib/ansible/modules/network/nxos/nxos_facts.py @@ -409,7 +409,11 @@ class Interfaces(FactsBase): name = item['ROW_intf']['intf-name'] intf = self.facts['interfaces'][name] intf['ipv6'] = self.transform_dict(item, self.INTERFACE_IPV6_MAP) - self.facts['all_ipv6_addresses'].append(item['ROW_intf']['addr']) + try: + addr = item['ROW_intf']['addr'] + except KeyError: + addr = item['ROW_intf']['TABLE_addr']['ROW_addr']['addr'] + self.facts['all_ipv6_addresses'].append(addr) else: return "" except TypeError: diff --git a/test/integration/targets/nxos_acl/tests/common/sanity.yaml b/test/integration/targets/nxos_acl/tests/common/sanity.yaml index 56bdac267d..1bf3cb969f 100644 --- a/test/integration/targets/nxos_acl/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_acl/tests/common/sanity.yaml @@ -4,7 +4,7 @@ when: ansible_connection == "local" - set_fact: time_range="ans-range" - when: not ( platform is match("N5K")) + when: not (platform is match("N5K")) and not (platform is match("N35")) - name: "Setup: Cleanup possibly existing acl." nxos_acl: &remove diff --git a/test/integration/targets/nxos_command/tests/cli/sanity.yaml b/test/integration/targets/nxos_command/tests/cli/sanity.yaml index 465deadd03..fc14d2d8cb 100644 --- a/test/integration/targets/nxos_command/tests/cli/sanity.yaml +++ b/test/integration/targets/nxos_command/tests/cli/sanity.yaml @@ -21,7 +21,6 @@ - assert: &fail that: - "result.failed == true" - - "'Invalid command' in result.msg" - name: "Enable feature BGP" nxos_feature: diff --git a/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml b/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml index 9fea97b6f7..f3d964a2dc 100644 --- a/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml +++ b/test/integration/targets/nxos_command/tests/nxapi/sanity.yaml @@ -21,7 +21,6 @@ - assert: &fail that: - "result.failed == true" - - "'Input CLI command error' in result.msg" - name: "Enable feature BGP" nxos_feature: