Skip to content

Commit

Permalink
two leafs per spine
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-lopes-rodrigues committed Jul 23, 2024
1 parent 4455690 commit 28a6e0b
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 28a6e0b

Please sign in to comment.