Retrieves information on device interfaces.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
intf_facts = duthost.interface_facts()
up_ports- All ports expected to be at link up status- Required:
False - Type:
List- Element-Type:
String
- Element-Type:
- Required:
Returns a dictionary with information on interfaces. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_factsansible_interface_link_down_ports- List of interfaces with down portsanisble_interface_ips- Dictionary with information on interface ipsall_ipv6_addresses- list of ipv6 addresses attached to interfacesall_ipv4_addresses- list of ipv4 addresses attached to interfaces
ansible_interface_facts- Dictionary with information on each interface{INTERFACE_NAME}- Dictionary with information on specified interfacemacaddress- interface mac addressmtudevice- name of device, same as provided beforepromisclinkipv6- List of dictionaries with information on connected ipv6 addressesaddress- ipv6 addressscopeprefix- address prefix
active- Whether or not interface is activetype- type of interface