From efae0a9f4adf96ff41c12e81d4798b246aca314d Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Thu, 21 Mar 2019 14:58:16 +0800 Subject: [PATCH] [vlan] Bring up LAGs after shutdown them for vlan test configuration In vlan_configuration.yml, the LAGs are shutdown for loading /etc/sonic/vlan_configuration.json. Need to bring them back after the configuration is loaded. Otherwise, the LAGs will remain down and PTF test would fail. Signed-off-by: Xin Wang --- ansible/roles/test/tasks/vlan_configure.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/roles/test/tasks/vlan_configure.yml b/ansible/roles/test/tasks/vlan_configure.yml index c8b0a668329..28371dbc756 100644 --- a/ansible/roles/test/tasks/vlan_configure.yml +++ b/ansible/roles/test/tasks/vlan_configure.yml @@ -51,5 +51,14 @@ shell: config load -y /etc/sonic/vlan_configuration.json become: true +- name: sleep for some time + pause: seconds=30 + +- name: Bring up LAGs + shell: ifconfig {{ item.attachto }} up + with_items: + - "{{ minigraph_portchannel_interfaces }}" + become: true + - name: sleep for some time pause: seconds=10