From ba9fda48dcf448cbc03078bc0430350edc4f46ad Mon Sep 17 00:00:00 2001 From: Renan Lopes Date: Wed, 24 Jul 2024 11:00:48 -0300 Subject: [PATCH] format fix --- networkapi/api_rack/provision.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/networkapi/api_rack/provision.py b/networkapi/api_rack/provision.py index ebb228b5..e4d6d634 100644 --- a/networkapi/api_rack/provision.py +++ b/networkapi/api_rack/provision.py @@ -419,15 +419,15 @@ def spine_provision(self, rack, equips): counter = 1 for ipv6 in IPSPINEipv6[numero_rack]: - variablestochangespine1[f'IPSPINE{counter}IPV6'] = ipv6 - variablestochangespine1[f"IPNEIGHLEAF{counter}IPV6"] = str(IPLEAFipv6[numero_rack][counter -1]) + variablestochangespine1["IPSPINE{}IPV6".format(counter)] = str(ipv6) + variablestochangespine1["IPNEIGHLEAF{}IPV6".format(counter)] = str(IPLEAFipv6[numero_rack][counter -1]) counter += 1 counter = 1 for ipv4 in IPSPINEipv4[numero_rack]: - variablestochangespine1[f'IPSPINE{counter}IPV4'] = str(ipv6) - variablestochangespine1[f"IPNEIGHLEAF{counter}IPV4"] = str(IPLEAFipv4[numero_rack][counter -1]) + variablestochangespine1["IPSPINE{}IPV4".format(counter)] = str(ipv6) + variablestochangespine1["IPNEIGHLEAF{}IPV4".format(counter)] = str(IPLEAFipv4[numero_rack][counter -1]) counter += 1 @@ -443,14 +443,14 @@ def spine_provision(self, rack, equips): variablestochangespine1["VLANFE2LEAF"] = str(vlanFE[spine_num - 2]) counter = 1 for ipv6 in IPSPINEipv6[numero_rack]: - variablestochangespine1[f'IPSPINE{counter}IPV6'] = str(ipv6) - variablestochangespine1[f"IPNEIGHLEAF{counter}IPV6"] = str(IPLEAFipv6[numero_rack][counter - 1]) + variablestochangespine1["IPSPINE{}IPV6".format(counter)] = str(ipv6) + variablestochangespine1["IPNEIGHLEAF{}IPV6".format(counter)] = str(IPLEAFipv6[numero_rack][counter - 1]) counter += 1 counter = 1 for ipv4 in IPSPINEipv4[numero_rack]: - variablestochangespine1[f'IPSPINE{counter}IPV4'] = str(ipv6) - variablestochangespine1[f"IPNEIGHLEAF{counter}IPV4"] = str(IPLEAFipv4[numero_rack][counter - 1]) + variablestochangespine1["IPSPINE{}IPV4".format(counter)] = str(ipv6) + variablestochangespine1["IPNEIGHLEAF{}IPV4".format(counter)] = str(IPLEAFipv4[numero_rack][counter - 1]) counter += 1