From e618221a0f0c92a3c50dd1ab21197631c1b5a35b Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Wed, 12 Jul 2017 16:50:13 +0200 Subject: [PATCH] Split Eth1 and Eth2 configs of prepare_eos_tests (#26704) Previous single block wasn't working for Eth2, despite not erroring out. --- .../targets/prepare_eos_tests/tasks/main.yml | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/test/integration/targets/prepare_eos_tests/tasks/main.yml b/test/integration/targets/prepare_eos_tests/tasks/main.yml index fd05396c7d..a450f00bd5 100644 --- a/test/integration/targets/prepare_eos_tests/tasks/main.yml +++ b/test/integration/targets/prepare_eos_tests/tasks/main.yml @@ -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