2019-08-23 11:36:26 +02:00
|
|
|
---
|
2020-01-10 12:03:22 +01:00
|
|
|
# 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
|
|
|
|
|
2019-08-23 11:36:26 +02:00
|
|
|
- { include: cli.yaml, tags: ['cli'] }
|