Skip to content

Commit ba3a54a

Browse files
authored
[deploy minigraph]add default enable BGP to deploy minigraph step (#455)
1 parent 2746f16 commit ba3a54a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ansible/config_sonic_basedon_testbed.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@
100100

101101
- name: execute cli "config load_minigraph -y" to apply new minigraph
102102
become: true
103-
ignore_errors: true
104103
shell: config load_minigraph -y
105104

105+
- name: execute cli "config bgp startup all" to bring up all bgp sessions for test
106+
become: true
107+
shell: config bgp startup all
108+
106109
- name: execute cli "config save -y" to save current minigraph as startup-config
107110
become: true
108-
ignore_errors: true
109111
shell: config save -y
110112
when: save is defined and save|bool == true
111113
when: deploy is defined and deploy|bool == true

ansible/testbed-cli.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function deploy_minigraph
127127

128128
read_file $1
129129

130-
ansible-playbook -i lab config_sonic_basedon_testbed.yml --vault-password-file="$2" -l "$dut" -e vm_base="$vm_base" -e topo="$topo" -e deploy=true
130+
ansible-playbook -i lab config_sonic_basedon_testbed.yml --vault-password-file="$2" -l "$dut" -e vm_base="$vm_base" -e topo="$topo" -e deploy=true -e save=true
131131

132132
echo Done
133133
}

0 commit comments

Comments
 (0)