Retreives configuration facts for a device
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
config_facts = duthosts.config_facts(host=duthost.hostname, source="running")
host
- The device hostname that config facts are desired for- Required:
True
- Type:
String
- Required:
source
- Whether current config or boot config is desired- Required:
True
- Type:
String
- Choices:
running
- currently running configpersistent
- boot config as described in/etc/sonic/config_db.json
- Required:
filename
- specific config file location (if not/etc/sonic/config_db.json
)- Required:
False
- Type:
String
- Required:
namespace
- Specify ASIC namespace is desired- Required:
False
- Type:
String
- Required:
Output is too long to reasonably document on this page. Though documentation should be added on commonly used features.