getserviceprops
October 31, 2022 ยท View on GitHub
Overview
Gets detailed properties of a service
Examples
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
service_props = duthost.get_service_props("procdockerstatsd")
Arguments
service- name of service properties are desired for- Required:
True - Type:
String
- Required:
props- List of properties desired for service- Required:
False - Type:
List- Element-Type:
String
- Element-Type:
- Default:
ActiveStateSubState
- Required:
Expected Output
Will return dictionary where the key is the property name and the value is the property's value. Below is an example key-value pairing, though the output depends to the value of props:
AcitveState- state of the propertySubState- Whether the property is running or not