|
324 | 324 | <ElementType>DeviceInterfaceLink</ElementType> |
325 | 325 | <EndDevice>{{ inventory_hostname }}</EndDevice> |
326 | 326 | <EndPort>{{ port_alias[32+index*8+2] }}</EndPort> |
327 | | - <StartDevice>ARISTA{{ '%02d' % (index+1) }}T0</StartDevice> |
| 327 | + <StartDevice>ARISTA{{ '%02d' % (index*5+1) }}T0</StartDevice> |
328 | 328 | <StartPort>Ethernet1</StartPort> |
329 | 329 | </DeviceLinkBase> |
330 | 330 | <DeviceLinkBase> |
331 | 331 | <ElementType>DeviceInterfaceLink</ElementType> |
332 | 332 | <EndDevice>{{ inventory_hostname }}</EndDevice> |
333 | | - <EndPort>{{ port_alias[32+index*8+2] }}</EndPort> |
334 | | - <StartDevice>ARISTA{{ '%02d' % (index+1) }}T0</StartDevice> |
| 333 | + <EndPort>{{ port_alias[32+index*8+4] }}</EndPort> |
| 334 | + <StartDevice>ARISTA{{ '%02d' % (index*5+2) }}T0</StartDevice> |
335 | 335 | <StartPort>Ethernet1</StartPort> |
336 | 336 | </DeviceLinkBase> |
337 | 337 | <DeviceLinkBase> |
338 | 338 | <ElementType>DeviceInterfaceLink</ElementType> |
339 | 339 | <EndDevice>{{ inventory_hostname }}</EndDevice> |
340 | 340 | <EndPort>{{ port_alias[32+index*8+5] }}</EndPort> |
341 | | - <StartDevice>ARISTA{{ '%02d' % (index+1) }}T0</StartDevice> |
| 341 | + <StartDevice>ARISTA{{ '%02d' % (index*5+3) }}T0</StartDevice> |
342 | 342 | <StartPort>Ethernet1</StartPort> |
343 | 343 | </DeviceLinkBase> |
344 | 344 | <DeviceLinkBase> |
345 | 345 | <ElementType>DeviceInterfaceLink</ElementType> |
346 | 346 | <EndDevice>{{ inventory_hostname }}</EndDevice> |
347 | 347 | <EndPort>{{ port_alias[32+index*8+6] }}</EndPort> |
348 | | - <StartDevice>ARISTA{{ '%02d' % (index+1) }}T0</StartDevice> |
| 348 | + <StartDevice>ARISTA{{ '%02d' % (index*5+4) }}T0</StartDevice> |
349 | 349 | <StartPort>Ethernet1</StartPort> |
350 | 350 | </DeviceLinkBase> |
351 | 351 | <DeviceLinkBase> |
352 | 352 | <ElementType>DeviceInterfaceLink</ElementType> |
353 | 353 | <EndDevice>{{ inventory_hostname }}</EndDevice> |
354 | 354 | <EndPort>{{ port_alias[32+index*8+7] }}</EndPort> |
355 | | - <StartDevice>ARISTA{{ '%02d' % (index+1) }}T0</StartDevice> |
| 355 | + <StartDevice>ARISTA{{ '%02d' % (index*5+5) }}T0</StartDevice> |
356 | 356 | <StartPort>Ethernet1</StartPort> |
357 | 357 | </DeviceLinkBase> |
358 | 358 | {% endfor %} |
|
0 commit comments