File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -548,8 +548,10 @@ def _get_disabled_services_list():
548
548
549
549
550
550
def _stop_services ():
551
+ # This list is order-dependent. Please add services in the order they should be stopped
551
552
# on Mellanox platform pmon is stopped by syncd
552
553
services_to_stop = [
554
+ 'telemetry' ,
553
555
'restapi' ,
554
556
'swss' ,
555
557
'lldp' ,
@@ -566,30 +568,33 @@ def _stop_services():
566
568
567
569
568
570
def _reset_failed_services ():
571
+ # This list is order-independent. Please keep list in alphabetical order
569
572
services_to_reset = [
570
573
'bgp' ,
571
574
'dhcp_relay' ,
572
575
'hostcfgd' ,
573
576
'hostname-config' ,
574
577
'interfaces-config' ,
575
578
'lldp' ,
579
+ 'nat' ,
576
580
'ntp-config' ,
577
581
'pmon' ,
578
582
'radv' ,
583
+ 'restapi' ,
579
584
'rsyslog-config' ,
585
+ 'sflow' ,
580
586
'snmp' ,
581
587
'swss' ,
582
588
'syncd' ,
583
589
'teamd' ,
584
- 'nat' ,
585
- 'sflow' ,
586
- 'restapi'
590
+ 'telemetry'
587
591
]
588
592
589
593
execute_systemctl (services_to_reset , SYSTEMCTL_ACTION_RESET_FAILED )
590
594
591
595
592
596
def _restart_services ():
597
+ # This list is order-dependent. Please add services in the order they should be started
593
598
# on Mellanox platform pmon is started by syncd
594
599
services_to_restart = [
595
600
'hostname-config' ,
@@ -603,7 +608,8 @@ def _restart_services():
603
608
'hostcfgd' ,
604
609
'nat' ,
605
610
'sflow' ,
606
- 'restapi'
611
+ 'restapi' ,
612
+ 'telemetry'
607
613
]
608
614
609
615
disable_services = _get_disabled_services_list ()
You can’t perform that action at this time.
0 commit comments