ansible/test/integration/targets/nxos_l3_interfaces/tasks/main.yaml
Chris Van Heuveln 3ebc96e5c7 nxos_l3_interfaces: fix states, add new minor attributes (#64853)
* (WIP) nxos_l3_interfaces: fix states, add new minor attributes

* sa cleanup

* more regression fixes

* test_8 for add'l code coverage

* Fix regressions to handle mgmt w/o IP

* add 'no system default switchport' to regression setups

* add err msg to terminal_stderr_re so that cli_config will catch L2 failures

* regression test change: /int4/int3/

* Add default rsvd_intf_len for Zuul CI

* Fix replaced-with-no-ipaddr and ip redirect issues
2020-01-10 16:33:22 +05:30

18 lines
651 B
YAML

---
# The interface-count asserts need to also account for mgmt0 which is a reserved
# interface; i.e. it will be included in L3 facts when it has non-default values
# but excluded from result.before/after because it's not allowed to be managed.
- set_fact:
# Zuul CI skips prepare_nxos but will have dhcp configured on mgmt0
rsvd_intf_len: 1
- block:
- set_fact:
mgmt:
"{{ intdataraw|selectattr('interface', 'equalto', 'mgmt0')|list}}"
- set_fact:
rsvd_intf_len:
"{{ 1 if (mgmt and 'ip_addr' in mgmt[0]) else 0}}"
when: prepare_nxos_tests_task | default(True) | bool
- { include: cli.yaml, tags: ['cli'] }