Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-lopes-rodrigues committed Jul 24, 2024
1 parent f347118 commit ba9fda4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions networkapi/api_rack/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit ba9fda4

Please sign in to comment.