Skip to content

Commit

Permalink
Merge pull request #420 from globocom/develop
Browse files Browse the repository at this point in the history
testing
  • Loading branch information
renan-lopes-rodrigues authored Jul 24, 2024
2 parents 558dbc4 + 72e268d commit 5fae003
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions networkapi/api_rack/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,12 @@ def spine_provision(self, rack, equips):
# variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 2])
# variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num - 2])

e_counter = 1
for e, s, y in zip(equips_sorted[:2], [0, 2], [0, 1]):
variablestochangespine1["DESCRIPTION{}CONNECT".format(e_counter)] = e.get("nome")
e_counter += 1
# e_counter = 1
# for e in equips_sorted[:2]:
# # "DESCRIPTION{}CONNECT"
variablestochangespine1["DESCRIPTION1CONNECT"] = equips_sorted[0].get("nome")
variablestochangespine1["DESCRIPTION2CONNECT"] = equips_sorted[0].get("nome")
# e_counter += 1
#### END to Berrini Block #####

variablestochangespine1["IPNEIGHLEAFIPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 1])
Expand Down

0 comments on commit 5fae003

Please sign in to comment.