Reterives ARP table from the SONiC switch
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
arptable = duthost.switch_arptable()
This function takes no arguments
Returns a dictionary that describes the contents of the ARP table. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
asnible_facts- dictionary that contains arptable infoaprtable- dictionary that contains arptable info for ipv4 and ipv6v4- dictionary that contains info on ipv4 arptable entries{IPV4_ADDRESS}- dictionary containing information on entry associated with provided addressinterface- name of interface associated with addressmacaddress- macaddress for entrystate- state of interface
v6- dictionary that contains info on ipv6 arptable entries{IPV6_ADDRESS}- dictionary containing information on entry associated with provided addressinterface- name of interface associated with addressmacaddress- macaddress for entrystate- state of interface