Skip to content

Commit 9927942

Browse files
authored
Skip generating dualtor_facts on single tor testbed. (#2646)
I noticed that the dual_tor_facts plugin costs around 5 minutes to generate dualtor facts when deploying or generating minigraph. The generated dualtor facts is not used on single tor testbed though. This commit updates the task file for deploying minigraph to skip dual_tor_facts plugin on single tor testbed. Signed-off-by: bingwang <[email protected]>
1 parent 0938b91 commit 9927942

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ansible/config_sonic_basedon_testbed.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,15 @@
6565
- topo_facts: topo={{ topo }}
6666
delegate_to: localhost
6767

68+
- name: set default dualtor facts
69+
set_fact:
70+
dual_tor_facts: {}
71+
when: "'dualtor' not in topo"
72+
6873
- name: gather dual ToR information
6974
dual_tor_facts: hostname="{{ inventory_hostname }}" testbed_facts="{{ testbed_facts }}" hostvars="{{ hostvars }}" vm_config="{{ vm_topo_config }}"
7075
delegate_to: localhost
76+
when: "'dualtor' in topo"
7177

7278
- name: set default vm file path
7379
set_fact:

0 commit comments

Comments
 (0)