Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-lopes-rodrigues committed Jul 25, 2024
1 parent 6f42dc8 commit dffa1c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions networkapi/api_rack/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ def spine_provision(self, rack, equips):

### TO BERRINI
if spine_num == 1:
variablestochangespine1["DESCRIPTION1CONNECT"] = equips_sorted[0].get("nome")
variablestochangespine1["DESCRIPTION2CONNECT"] = equips_sorted[1].get("nome")
# variablestochangespine1["DESCRIPTION1CONNECT"] = equips_sorted[0].get("nome")
# variablestochangespine1["DESCRIPTION2CONNECT"] = equips_sorted[1].get("nome")
variablestochangespine1["VLANBORDA2LEAF"] = str(vlanBO[spine_num])
variablestochangespine1["VLANBORDA2CACHOSLEAF"] = str(vlanBOCA[spine_num])
variablestochangespine1["VLANBORDA2CACHOSB"] = str(vlanBOCAB[spine_num])
Expand All @@ -454,8 +454,6 @@ def spine_provision(self, rack, equips):
# variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num])
# variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num])
elif spine_num == 2:
variablestochangespine1["DESCRIPTION1CONNECT"] = equips_sorted[1].get("nome")
variablestochangespine1["DESCRIPTION2CONNECT"] = equips_sorted[0].get("nome")
variablestochangespine1["VLANBORDA2LEAF"] = str(vlanBO[spine_num - 2])
variablestochangespine1["VLANBORDA2CACHOSLEAF"] = str(vlanBOCA[spine_num - 2])
variablestochangespine1["VLANBORDA2CACHOSB"] = str(vlanBOCAB[spine_num - 2])
Expand Down Expand Up @@ -487,6 +485,8 @@ def spine_provision(self, rack, equips):
# # "DESCRIPTION{}CONNECT"

# e_counter += 1
variablestochangespine1["DESCRIPTION1CONNECT"] = equips_sorted[1].get("nome")
variablestochangespine1["DESCRIPTION2CONNECT"] = equips_sorted[0].get("nome")
#### END to Berrini Block #####

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

0 comments on commit dffa1c9

Please sign in to comment.