Returns whether or not a specified ASIC specific container is running.
def test_fun(duthosts, rand_one_dut_hostname, tbinfo, enum_frontend_asic_index):
duthost = duthosts[rand_one_dut_hostname]
sonic_asic = duthost.asic_instance(asic_index=enum_frontend_asic_index)
swss_running = sonic_asic.is_container_running("swss", "swss")
service_name
- name of service docker corresponds to- Required:
True
- Type:
String
- Required:
docker_name
- name of docker container that is being checked on- Required:
True
- Type:
String
- Required:
True
if docker container is running, False
otherwise.