Retrieves sensor facts for a device.
def test_fun(duthosts, rand_one_dut_hostname, creds):
duthost = duthosts[rand_one_dut_hostname]
platform = duthost.facts['platform']
sensors_checks = creds['sensors_checks']
sensors = duthost.sensors_facts(checks=sensors_checks[platform])
checks
- What hardware platform to check sensors for- Required:
True
- Type:
String
- Required:
Unable to check output as on virtual testbed.