diff --git a/ansible/config_sonic_basedon_testbed.yml b/ansible/config_sonic_basedon_testbed.yml index 24804aa2f90..a028f335a64 100644 --- a/ansible/config_sonic_basedon_testbed.yml +++ b/ansible/config_sonic_basedon_testbed.yml @@ -65,9 +65,15 @@ - topo_facts: topo={{ topo }} delegate_to: localhost + - name: set default dualtor facts + set_fact: + dual_tor_facts: {} + when: "'dualtor' not in topo" + - name: gather dual ToR information dual_tor_facts: hostname="{{ inventory_hostname }}" testbed_facts="{{ testbed_facts }}" hostvars="{{ hostvars }}" vm_config="{{ vm_topo_config }}" delegate_to: localhost + when: "'dualtor' in topo" - name: set default vm file path set_fact: