nxos_l2_interfaces: fix for integration tests failing to setup layer2 (#61887)
This commit is contained in:
parent
c4894b512d
commit
c0f3777fe2
4 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -11,6 +11,12 @@
|
|||
ignore_errors: yes
|
||||
|
||||
- block:
|
||||
- name: setup2
|
||||
cli_config:
|
||||
config: |
|
||||
interface {{ test_int1 }}
|
||||
switchport
|
||||
|
||||
- name: Merged
|
||||
nxos_l2_interfaces: &merged
|
||||
config:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue