Skip to content

Commit

Permalink
Merge pull request #408 from globocom/develop
Browse files Browse the repository at this point in the history
two leafs per spine
  • Loading branch information
renan-lopes-rodrigues authored Jul 23, 2024
2 parents 20dc198 + 28a6e0b commit e9fed1c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions networkapi/api_rack/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,23 @@ def spine_provision(self, rack, equips):

### TO BERRINI
if spine_num == 1:
variablestochangespine1["VLANBORDA2LEAF"] = str(vlanBO[spine_num])
variablestochangespine1["VLANBORDA2CACHOSLEAF"] = str(vlanBOCA[spine_num])
variablestochangespine1["VLANBORDA2CACHOSB"] = str(vlanBOCAB[spine_num])
variablestochangespine1["VLANFE2LEAF"] = str(vlanFE[spine_num])
variablestochangespine1["IPSPI2NEIPV6"] = str(IPSPINEipv6[numero_rack][spine_num])
variablestochangespine1["IPSPI2NEIPV4"] = str(IPSPINEipv4[numero_rack][spine_num])
variablestochangespine1["VLANBE2LEAF"] = str(vlanBE[spine_num])
variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num])
variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num])
elif spine_num == 2:
variablestochangespine1["VLANBORDA2LEAF"] = str(vlanBO[spine_num - 2])
variablestochangespine1["VLANBORDA2CACHOSLEAF"] = str(vlanBOCA[spine_num - 2])
variablestochangespine1["VLANBORDA2CACHOSB"] = str(vlanBOCAB[spine_num - 2])
variablestochangespine1["VLANFE2LEAF"] = str(vlanFE[spine_num - 2])
variablestochangespine1["IPSPI2NEIPV6"] = str(IPSPINEipv6[numero_rack][spine_num - 2])
variablestochangespine1["IPSPI2NEIPV4"] = str(IPSPINEipv4[numero_rack][spine_num - 2])
variablestochangespine1["VLANBE2LEAF"] = str(vlanBE[spine_num - 2])
variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 2])
variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num - 2])

Expand Down

0 comments on commit e9fed1c

Please sign in to comment.