diff --git a/ansible/config_sonic_basedon_testbed.yml b/ansible/config_sonic_basedon_testbed.yml index b9309cc24b1..cb13528c667 100644 --- a/ansible/config_sonic_basedon_testbed.yml +++ b/ansible/config_sonic_basedon_testbed.yml @@ -80,7 +80,7 @@ set_fact: vlan_intfs: "{{ vlan_intfs|default([])}} + ['{{ port_alias[item] }}' ]" with_items: "{{ host_if_indexes }}" - when: ("'host_interfaces' in vm_topo_config") and ("'tor' in vm_topo_config['dut_type'] | lower") + when: "('host_interfaces' in vm_topo_config) and ('tor' in vm_topo_config['dut_type'] | lower)" - name: find all vlan configurations for T0 topology vlan_config: @@ -88,7 +88,7 @@ port_alias: "{{ port_alias }}" vlan_config: "{{ vlan_config | default(None) }}" delegate_to: localhost - when: ("'host_interfaces' in vm_topo_config") and ("'tor' in vm_topo_config['dut_type'] | lower") + when: "('host_interfaces' in vm_topo_config) and ('tor' in vm_topo_config['dut_type'] | lower)" - name: find all interface indexes mapping connecting to VM set_fact: