Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-lopes-rodrigues committed Jul 26, 2024
1 parent 34d47bf commit fdb2b4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions networkapi/api_rack/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ def spine_provision(self, rack, equips):
variablestochangespine1["ASLEAF"] = str(ASLEAF[numero_rack][0])

### TO BERRINI
## To pop Berrini we use new variables, this make the new cross topology and old topology run to.

if spine_num == 1:
variablestochangespine1["VLANBORDA2LEAF"] = str(vlanBO[spine_num])
variablestochangespine1["VLANBORDA2CACHOSLEAF"] = str(vlanBOCA[spine_num])
Expand Down Expand Up @@ -508,6 +510,8 @@ def spine_provision(self, rack, equips):
fileoutspine1 = path_to_add_config + i.get("nome") + "-ADD-" + rack.nome + ".cfg"

### ANOTHER BERRINI BLOCK
## Here we invert the variables of description, due unique template to diferent spines
## without this invertion, the description run well on spine 2 but on spine 1 they are inverted
if int(i.get("nome")[-1]) == 1:
spn_int_desc1 = variablestochangespine1["DESCRIPTION2CONNECT"]
spn_int_desc2 = variablestochangespine1["DESCRIPTION1CONNECT"]
Expand Down

0 comments on commit fdb2b4f

Please sign in to comment.