Retrieve ipv4 address for interface and ipv4 address for corresponding neighbor
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()
namespace
- if multi-asic, namespace to run the commmand- Required:
False
- Type:
String
- Required:
See the show_ip_interface Ansible module for example output.