Skip to content

Commit

Permalink
[vlan] Bring up LAGs after shutdown them for vlan test configuration (#…
Browse files Browse the repository at this point in the history
…835)

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 <xinw@mellanox.com>
  • Loading branch information
wangxin authored and lguohan committed Mar 22, 2019
1 parent abe098f commit a8e3b9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansible/roles/test/tasks/vlan_configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a8e3b9a

Please sign in to comment.