nxos_l2_interfaces: fix for integration tests failing to setup layer2 (#61887)

This commit is contained in:
Chris Van Heuveln 2019-09-12 12:16:52 -04:00 committed by Trishna Guha
parent c4894b512d
commit c0f3777fe2
4 changed files with 13 additions and 0 deletions

View file

@ -17,8 +17,10 @@
cli_config:
config: |
interface {{ test_int1 }}
switchport
switchport trunk native vlan 10
interface {{ test_int2 }}
switchport
switchport trunk allowed vlan 20
- name: Gather l2_interfaces facts

View file

@ -11,6 +11,12 @@
ignore_errors: yes
- block:
- name: setup2
cli_config:
config: |
interface {{ test_int1 }}
switchport
- name: Merged
nxos_l2_interfaces: &merged
config:

View file

@ -17,7 +17,10 @@
cli_config:
config: |
interface {{ test_int1 }}
switchport
switchport trunk allowed vlan 11
interface {{ test_int2 }}
switchport
- name: Gather l2_interfaces facts
nxos_facts: &facts

View file

@ -17,8 +17,10 @@
cli_config:
config: |
interface {{ test_int1 }}
switchport
switchport access vlan 5
interface {{ test_int2 }}
switchport
switchport trunk native vlan 15
- name: Gather l2_interfaces facts