showipinterface
October 31, 2022 ยท View on GitHub
Overview
Retrieve ipv4 address for interface and ipv4 address for corresponding neighbor
Examples
def test_fun(duthosts, rand_one_dut_hostname, tbinfo, enum_frontend_asic_index):
duthost = duthosts[rand_one_dut_hostname]
sonic_asic = duthost.asic_instance(asic_index=enum_frontend_asic_index)
ip_intf = sonic_asic.show_ip_interface()
Arguments
namespace- if multi-asic, namespace to run the commmand- Required:
False - Type:
String
- Required:
Expected Output
See the show_ip_interface Ansible module for example output.