From 13276e2174e7ad8b245bcd6b5bc0cf47d87151b6 Mon Sep 17 00:00:00 2001 From: Nazarii Hnydyn Date: Fri, 2 Aug 2019 08:47:12 +0000 Subject: [PATCH] Beautify minigraph generator: align code output. Signed-off-by: Nazarii Hnydyn --- ansible/templates/minigraph_dpg.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 %}