Read vlan brief information from running config.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
vlan_brief = duthost.get_vlan_brief()
None
Returns an dict, key is vlan name and value is brief information.
Example output:
{
"Vlan1000": {
"interface_ipv4": [ "192.168.0.1/24" ],
"interface_ipv6": [ "fc02:1000::1/64" ],
"members": ["Ethernet0", "Ethernet1"]
},
"Vlan2000": {
"interface_ipv4": [ "192.168.1.1/24" ],
"interface_ipv6": [ "fc02:1001::1/64" ],
"members": ["Ethernet3", "Ethernet4"]
}
}