Skip to content

Commit a919fb7

Browse files
Merge pull request #418 from globocom/develop
fix
2 parents 475a4b1 + 0f51ad3 commit a919fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

networkapi/api_rack/provision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,8 @@ def spine_provision(self, rack, equips):
479479
# variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num - 2])
480480

481481
e_counter = 1
482-
for e in equips_sorted[:2]:
483-
variablestochangespine1["DESCRIPTION{}INTERFACE".format(e_counter)] = e.get("name")
482+
for e, s, y in zip(equips_sorted[:2], [0, 2], [0, 1]):
483+
variablestochangespine1["DESCRIPTION{}INTERFACE".format(e_counter)] = e.get("nome")
484484
e_counter += 1
485485
#### END to Berrini Block #####
486486

0 commit comments

Comments
 (0)