@@ -427,6 +427,8 @@ def spine_provision(self, rack, equips):
427427
428428 ### TO BERRINI
429429 if spine_num == 1 :
430+ variablestochangespine1 ["DESCRIPTION1CONNECT" ] = equips_sorted [0 ].get ("nome" )
431+ variablestochangespine1 ["DESCRIPTION2CONNECT" ] = equips_sorted [1 ].get ("nome" )
430432 variablestochangespine1 ["VLANBORDA2LEAF" ] = str (vlanBO [spine_num ])
431433 variablestochangespine1 ["VLANBORDA2CACHOSLEAF" ] = str (vlanBOCA [spine_num ])
432434 variablestochangespine1 ["VLANBORDA2CACHOSB" ] = str (vlanBOCAB [spine_num ])
@@ -452,6 +454,8 @@ def spine_provision(self, rack, equips):
452454 # variablestochangespine1["IPNEIGHLEAF2IPV4"] = str(IPLEAFipv4[numero_rack][spine_num])
453455 # variablestochangespine1["IPNEIGHLEAF2IPV6"] = str(IPLEAFipv6[numero_rack][spine_num])
454456 elif spine_num == 2 :
457+ variablestochangespine1 ["DESCRIPTION1CONNECT" ] = equips_sorted [1 ].get ("nome" )
458+ variablestochangespine1 ["DESCRIPTION2CONNECT" ] = equips_sorted [2 ].get ("nome" )
455459 variablestochangespine1 ["VLANBORDA2LEAF" ] = str (vlanBO [spine_num - 2 ])
456460 variablestochangespine1 ["VLANBORDA2CACHOSLEAF" ] = str (vlanBOCA [spine_num - 2 ])
457461 variablestochangespine1 ["VLANBORDA2CACHOSB" ] = str (vlanBOCAB [spine_num - 2 ])
@@ -481,8 +485,7 @@ def spine_provision(self, rack, equips):
481485 # e_counter = 1
482486 # for e in equips_sorted[:2]:
483487 # # "DESCRIPTION{}CONNECT"
484- variablestochangespine1 ["DESCRIPTION1CONNECT" ] = equips_sorted [0 ].get ("nome" )
485- variablestochangespine1 ["DESCRIPTION2CONNECT" ] = equips_sorted [1 ].get ("nome" )
488+
486489 # e_counter += 1
487490 #### END to Berrini Block #####
488491
0 commit comments