Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Dosi <[email protected]>
  • Loading branch information
abdosi committed Jun 4, 2024
1 parent 0b954ec commit 7293537
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/common/devices/multi_asic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MultiAsicSonicHost(object):
So, even a single asic pizza box is represented as a MultiAsicSonicHost with 1 SonicAsic.
"""

_DEFAULT_SERVICES = ["pmon", "snmp", "lldp", "database"]
_DEFAULT_SERVICES = ["pmon", "snmp", "database"]

def __init__(self, ansible_adhoc, hostname, duthosts, topo_type):
""" Initializing a MultiAsicSonicHost.
Expand Down Expand Up @@ -65,6 +65,7 @@ def critical_services_tracking_list(self):
service_list = []
active_asics = self.asics
if self.sonichost.is_supervisor_node() and self.get_facts()['asic_type'] != 'vs':
self._DEFAULT_SERVICES.append("lldp")
active_asics = []
sonic_db_cli_out = self.command("sonic-db-cli CHASSIS_STATE_DB keys \"CHASSIS_FABRIC_ASIC_TABLE|asic*\"")
for a_asic_line in sonic_db_cli_out["stdout_lines"]:
Expand Down Expand Up @@ -94,6 +95,9 @@ def critical_services_tracking_list(self):
self.sonichost.DEFAULT_ASIC_SERVICES.remove(service)
if config_facts['FEATURE'][service]['state'] == "disabled":
self.sonichost.DEFAULT_ASIC_SERVICES.remove(service)
else:
self._DEFAULT_SERVICES.append("lldp")

for asic in active_asics:
service_list += asic.get_critical_services()
self.sonichost.reset_critical_services_tracking_list(service_list)
Expand Down

0 comments on commit 7293537

Please sign in to comment.