diff --git a/ansible/templates/minigraph_dpg.j2 b/ansible/templates/minigraph_dpg.j2 index b54e9a51ed8..25a1094cb1c 100644 --- a/ansible/templates/minigraph_dpg.j2 +++ b/ansible/templates/minigraph_dpg.j2 @@ -109,7 +109,7 @@ {% if 'port-channel' in vm_topo_config['vm'][vms[index]]['ip_intf'][dut_index|int]|lower %} {% set port_channel_intf=';'.join(intf_names[vms[index]]) %} - PortChannel{{ '10' + ((index+1)|string) }} + PortChannel{{ (100 + index + 1)|string }} {{ port_channel_intf }} @@ -191,7 +191,7 @@ {% if 'port-channel' in vm_topo_config['vm'][vms[index]]['ip_intf'][dut_index|int][intf_index]|lower %} - PortChannel{{ '10' + ((index+1) |string) }} + PortChannel{{ (100 + index + 1)|string }} {% else %} {{ port_alias[vm_topo_config['vm'][vms[index]]['interface_indexes'][dut_index|int][0]] }} {% endif %} @@ -202,7 +202,7 @@ {% if 'port-channel' in vm_topo_config['vm'][vms[index]]['ip_intf'][dut_index|int][intf_index]|lower %} - PortChannel{{ '10' + ((index+1) |string) }} + PortChannel{{ (100 + index + 1)|string }} {% else %} {{ port_alias[vm_topo_config['vm'][vms[index]]['interface_indexes'][dut_index|int][0]] }} {% endif %} @@ -293,7 +293,7 @@ {%- set acl_intfs = [] -%} {%- for index in range(vms_number) %} {% if 'port-channel' in vm_topo_config['vm'][vms[index]]['ip_intf'][dut_index|int]|lower %} -{% set a_intf = 'PortChannel' + '10' + ((index+1) |string) %} +{% set a_intf = 'PortChannel' ~ (100 + index + 1)|string %} {{- acl_intfs.append(a_intf) -}} {% endif %} {% endfor %}