From 72e268d75b78addc7cefb47d829abc8a9103244f Mon Sep 17 00:00:00 2001 From: Renan Lopes Date: Wed, 24 Jul 2024 18:01:54 -0300 Subject: [PATCH] testing --- networkapi/api_rack/provision.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/networkapi/api_rack/provision.py b/networkapi/api_rack/provision.py index 558e6c7c..11a79636 100644 --- a/networkapi/api_rack/provision.py +++ b/networkapi/api_rack/provision.py @@ -478,10 +478,12 @@ def spine_provision(self, rack, equips): # variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 2]) # variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num - 2]) - e_counter = 1 - for e, s, y in zip(equips_sorted[:2], [0, 2], [0, 1]): - variablestochangespine1["DESCRIPTION{}CONNECT".format(e_counter)] = e.get("nome") - e_counter += 1 + # e_counter = 1 + # for e in equips_sorted[:2]: + # # "DESCRIPTION{}CONNECT" + variablestochangespine1["DESCRIPTION1CONNECT"] = equips_sorted[0].get("nome") + variablestochangespine1["DESCRIPTION2CONNECT"] = equips_sorted[0].get("nome") + # e_counter += 1 #### END to Berrini Block ##### variablestochangespine1["IPNEIGHLEAFIPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 1])