diff --git a/ansible/templates/minigraph_dpg.j2 b/ansible/templates/minigraph_dpg.j2 index 83fb41893b3..5458e6f157a 100644 --- a/ansible/templates/minigraph_dpg.j2 +++ b/ansible/templates/minigraph_dpg.j2 @@ -59,7 +59,7 @@ {% set vlan_intf_str=';'.join(vlan_intfs) %} Vlan1000 - {{ vlan_intf_str }} + {{ vlan_intf_str }} False 0.0.0.0/0 @@ -122,7 +122,7 @@ ssh-only SSH -{%- if enable_data_plane_acl|default('true')|bool %} +{% if enable_data_plane_acl|default('true')|bool %} {%- for index in range(vms_number) %} @@ -130,7 +130,7 @@ PortChannel{{ ((index+1) |string).zfill(4) }}{% if not loop.last %};{% endif %} {% endif %} {% endfor %} -{%- for index in range(vms_number) %} +{% for index in range(vms_number) %} {% if 'port-channel' not in vm_topo_config['vm'][vms[index]]['ip_intf']|lower %} {{ port_alias[vm_topo_config['vm'][vms[index]]['interface_indexes'][0]] }}{% if not loop.last %};{% endif %} {% endif %} @@ -139,7 +139,7 @@ PortChannel{{ ((index+1) |string).zfill(4) }}{% if not loop.last %};{% endif %} DataAcl DataPlane -{% endif -%} +{% endif %}