From 73fa1769e7bd92b18c4d4c9bf0fb5681230bc766 Mon Sep 17 00:00:00 2001 From: Renan Lopes Date: Tue, 23 Jul 2024 15:57:48 -0300 Subject: [PATCH] added variables to create 2 sessions per spine --- networkapi/rack/resource/GeraConfig.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/networkapi/rack/resource/GeraConfig.py b/networkapi/rack/resource/GeraConfig.py index 74aa6b94..a5053355 100644 --- a/networkapi/rack/resource/GeraConfig.py +++ b/networkapi/rack/resource/GeraConfig.py @@ -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]) @@ -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])