From 9137248025a45a33f60dd31c0b27913bce722948 Mon Sep 17 00:00:00 2001 From: Renan Lopes Date: Tue, 23 Jul 2024 17:28:22 -0300 Subject: [PATCH] fix variables --- networkapi/api_rack/autoprovision.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/networkapi/api_rack/autoprovision.py b/networkapi/api_rack/autoprovision.py index 56dc63d4..02652ab4 100644 --- a/networkapi/api_rack/autoprovision.py +++ b/networkapi/api_rack/autoprovision.py @@ -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")