diff --git a/tests/common/devices/multi_asic.py b/tests/common/devices/multi_asic.py index f4e8e0dfca8..328fc1b0be0 100644 --- a/tests/common/devices/multi_asic.py +++ b/tests/common/devices/multi_asic.py @@ -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. @@ -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"]: @@ -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)