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
|
||||
connection: local
|
||||
|
||||
- name: enable ethernet interfaces
|
||||
eos_config:
|
||||
lines:
|
||||
- int Ethernet1
|
||||
- no shutdown
|
||||
- no switchport
|
||||
- int Ethernet2
|
||||
- no shutdown
|
||||
- no switchport
|
||||
provider: "{{ cli }}"
|
||||
connection: local
|
||||
- name: Enable Ethernet1 interface and disable switchport
|
||||
eos_config:
|
||||
lines:
|
||||
- no shutdown
|
||||
- no switchport
|
||||
parents: int Ethernet1
|
||||
authorize: yes
|
||||
connection: local
|
||||
|
||||
- name: Enable Ethernet2 interface and disable switchport
|
||||
eos_config:
|
||||
lines:
|
||||
- no shutdown
|
||||
- no switchport
|
||||
parents: int Ethernet2
|
||||
authorize: yes
|
||||
connection: local
|
||||
|
|
Loading…
Reference in a new issue