From 633ca7149a0def5df85dd98edb8d9a81b1cc20e9 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Fri, 20 Oct 2017 00:54:41 +0000 Subject: [PATCH] After boot_onie, admin up all bgp interfaces Signed-off-by: Qi Luo --- ansible/boot_onie.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ansible/boot_onie.yml b/ansible/boot_onie.yml index 585c70549ce..3459604e1fd 100644 --- a/ansible/boot_onie.yml +++ b/ansible/boot_onie.yml @@ -16,13 +16,13 @@ become: true shell: grub-editenv /host/grub/grubenv set next_entry=ONIE - - name: Reboot into ONIE + - name: Reboot into ONIE become: true shell: sleep 2 && shutdown -r now "Boot into onie." async: 1 poll: 0 ignore_errors: true - + - set_fact: real_ansible_host: "{{ ansible_ssh_host }}" @@ -59,3 +59,8 @@ - name: Wait for the SONiC initialization process pause: seconds=60 + + - name: Set all bgp interfaces admin-up + become: true + shell: config bgp startup all +