Skip to content

Commit

Permalink
Merge pull request #404 from globocom/develop
Browse files Browse the repository at this point in the history
fix variables
  • Loading branch information
renan-lopes-rodrigues authored Jul 23, 2024
2 parents 9d9812b + 9137248 commit fd2e361
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions networkapi/api_rack/autoprovision.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,15 @@ def autoprovision_splf(rack, equips):
variablestochangespine1["VLANBORDACACHOSLEAF"] = str(VLANBORDACACHOSLEAF[numero_rack][spine_num-1])
variablestochangespine1["VLANBORDACACHOSBLEAF"] = str(VLANBORDACACHOSBLEAF[numero_rack][spine_num-1])
variablestochangespine1["ASLEAF"] = str(ASLEAF[numero_rack][0])

### To pop Berrini
variablestochangespine1["IPNEIGHLEAFIPV4_2"] = str(IPLEAFipv4[numero_rack][spine_num])
variablestochangespine1["IPNEIGHLEAFIPV6_2"] = str(IPLEAFipv6[numero_rack][spine_num])


variablestochangespine1["IPNEIGHLEAFIPV4"] = str(IPLEAFipv4[numero_rack][spine_num-1])
variablestochangespine1["IPNEIGHLEAFIPV6"] = str(IPLEAFipv6[numero_rack][spine_num-1])

variablestochangespine1["RACK_NUM"] = str(numero_rack)
if spine_num in [1, 3]:
variablestochangeleaf1["SP1_HOSTNAME"] = i.get("nome")
Expand Down

0 comments on commit fd2e361

Please sign in to comment.