Restarts a service on a specified docker.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
duthost.restart_service("swss", "swss")
service_name
- name of service to be restarted- Required:
True
- Type:
String
- Required:
docker_name
- name of docker to start service on- Required:
True
- Type:
String
- Required:
Provides no output.