Returns whether or not a container is running on sonichost if the container's associated service is a default service. Otherwise, it returns whether or not the container is running on any ASIC.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
is_swss_cont_run = duthost.is_container_running("swss")
service
- name of container to check state for- Required:
True
- Type:
String
- Required:
True
if container is running, False
otherwise. Will check sonichost if container's associated service is a default service. Otherwise it will check if the container is running on any of the ASICs.