mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Split Eth1 and Eth2 configs of prepare_eos_tests (#26704)
Previous single block wasn't working for Eth2, despite not erroring out.
This commit is contained in:
parent
efcdc68ad2
commit
e618221a0f
1 changed files with 17 additions and 11 deletions
|
@ -8,14 +8,20 @@
|
||||||
register: eos_eapi_output
|
register: eos_eapi_output
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- name: enable ethernet interfaces
|
- name: Enable Ethernet1 interface and disable switchport
|
||||||
eos_config:
|
eos_config:
|
||||||
lines:
|
lines:
|
||||||
- int Ethernet1
|
|
||||||
- no shutdown
|
- no shutdown
|
||||||
- no switchport
|
- no switchport
|
||||||
- int Ethernet2
|
parents: int Ethernet1
|
||||||
- no shutdown
|
authorize: yes
|
||||||
- no switchport
|
connection: local
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
- name: Enable Ethernet2 interface and disable switchport
|
||||||
|
eos_config:
|
||||||
|
lines:
|
||||||
|
- no shutdown
|
||||||
|
- no switchport
|
||||||
|
parents: int Ethernet2
|
||||||
|
authorize: yes
|
||||||
connection: local
|
connection: local
|
||||||
|
|
Loading…
Reference in a new issue