Skip to content

Commit 475a4b1

Browse files
Merge pull request #417 from globocom/develop
added variables to desciprion on spine
2 parents bf879b2 + 947d28c commit 475a4b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

networkapi/api_rack/provision.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ def spine_provision(self, rack, equips):
478478
# variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 2])
479479
# variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num - 2])
480480

481+
e_counter = 1
482+
for e in equips_sorted[:2]:
483+
variablestochangespine1["DESCRIPTION{}INTERFACE".format(e_counter)] = e.get("name")
484+
e_counter += 1
481485
#### END to Berrini Block #####
482486

483487
variablestochangespine1["IPNEIGHLEAFIPV4"] = str(IPLEAFipv4[numero_rack][spine_num - 1])

0 commit comments

Comments
 (0)