diff --git a/puppet/all-nodes-config.j2.yaml b/puppet/all-nodes-config.j2.yaml index c41cd44fac..d7e080e651 100644 --- a/puppet/all-nodes-config.j2.yaml +++ b/puppet/all-nodes-config.j2.yaml @@ -179,15 +179,13 @@ resources: # the internal_api_virtual_ip is needed for contrail only internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]} network_virtual_ips: -{% set count = 1 %} {%- for network in networks if network.vip|default(false) %} # External virtual ip is currently being handled separately as public_virtual_ip. # Likewise, optional StorageNFS virtual ip is handled separately as ganesha_vip. {%- if network.name != 'External' and network.name != 'StorageNFS' %} {{network.name_lower}}: ip_address: {get_param: [NetVipMap, {get_param: {{network.name}}NetName}]} - index: {{count}} -{% set count = count + 1 %} + index: {{loop.index}} {%- endif %} {%- endfor %} redis_vip: {get_param: RedisVirtualIP}