Skip to content

Commit

Permalink
added variables to create 2 sessions 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 890226a commit 73fa176
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions networkapi/rack/resource/GeraConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,13 @@ def autoprovision_splf(rack,FILEINLF1, FILEINLF2,FILEINSP1, FILEINSP2, FILEINSP3
variablestochangespine1['VLANBORDALEAF'] = str(VLANBORDALEAF[rack][0])
variablestochangespine1['VLANBORDACACHOSLEAF'] = str(
VLANBORDACACHOSLEAF[rack][0])

### TO POP Berrini
variablestochangespine1['IPNEIGHLEAFIPV4_2'] = str(IPLEAFipv4[rack][1])
variablestochangespine1['IPNEIGHLEAFIPV6_2'] = str(IPLEAFipv6[rack][1])
variablestochangespine1['LEAFNAME_2'] = HOSTNAME_LF2


variablestochangespine1['ASLEAF'] = str(ASLEAF[rack][0])
variablestochangespine1['IPNEIGHLEAFIPV4'] = str(IPLEAFipv4[rack][0])
variablestochangespine1['IPNEIGHLEAFIPV6'] = str(IPLEAFipv6[rack][0])
Expand All @@ -968,6 +975,14 @@ def autoprovision_splf(rack,FILEINLF1, FILEINLF2,FILEINSP1, FILEINSP2, FILEINSP3
variablestochangespine2['VLANBORDALEAF'] = str(VLANBORDALEAF[rack][1])
variablestochangespine2['VLANBORDACACHOSLEAF'] = str(
VLANBORDACACHOSLEAF[rack][1])


### TO POP Berrini
variablestochangespine1['IPNEIGHLEAFIPV4_2'] = str(IPLEAFipv4[rack][0])
variablestochangespine1['IPNEIGHLEAFIPV6_2'] = str(IPLEAFipv6[rack][0])
variablestochangespine1['LEAFNAME_2'] = HOSTNAME_LF2


variablestochangespine2['ASLEAF'] = str(ASLEAF[rack][0])
variablestochangespine2['IPNEIGHLEAFIPV4'] = str(IPLEAFipv4[rack][1])
variablestochangespine2['IPNEIGHLEAFIPV6'] = str(IPLEAFipv6[rack][1])
Expand Down

0 comments on commit 73fa176

Please sign in to comment.