Get container names and their autorestart states. Containers that do not have the autorestart feature implemented are skipped by this test.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
container_states = duthost.get_container_autorestart_states()
This method takes no arguments
Returns dictionary mapping container names to the state of the autorestart feature
- {
CONTAINER_NAME
} - Eitherenabled
ordisabled
describing state of autorestart feature for provided container