showipinterface
October 31, 2022 ยท View on GitHub
Overview
Retrieve ipv4 address of interface and ipv4 address for corresponding neighbor
Examples
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
ip_intfs = duthost.show_ip_interface()
Arguments
namespace- if multi-asic, namespace to run the commmand- Required:
False - Type:
String
- Required:
Expected Output
Provides a dictionary with information on the interfaces. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_factsip_interfaces- Dictionary mapping interface name to information on the interface{INTERFACE_NAME}- Dictionary with info in interfacebgp_neighbor- Name of BGP neighbor for interfaceipv4- interface configured ipv4 addresspeer_ipv4- BGP neighbor ipv4 addressadmin- admin stateoper_state- operator stateprefix_len- interface prefix length