Closed ppieprzycki closed 6 years ago
According to issue https://github.com/napalm-automation/napalm-vyos/issues/17
Code for get_arp_table with params
Example output:
print mydevice.get_arp_table() print ("specific params") print mydevice.get_arp_table(ip='7.7.7.7') print mydevice.get_arp_table(ip='10.0.2.3') print mydevice.get_arp_table(ip='10.0.1.100') print mydevice.get_arp_table(mac='52:54:00:12:00:00') print mydevice.get_arp_table(mac='52:54:00:12:35:03') print mydevice.get_arp_table(mac='08:00:27:27:03:8e') print mydevice.get_arp_table(interface='eth0') print mydevice.get_arp_table(interface='eth1') print mydevice.get_arp_table(ip='10.0.2.3', interface='eth0') print mydevice.get_arp_table(ip='10.0.2.3', interface='eth1')
[{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}, {'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] specific params [] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] [{'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] [] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] [{'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] [{'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] []
According to issue https://github.com/napalm-automation/napalm-vyos/issues/17
Code for get_arp_table with params
Example output:
print mydevice.get_arp_table() print ("specific params") print mydevice.get_arp_table(ip='7.7.7.7') print mydevice.get_arp_table(ip='10.0.2.3') print mydevice.get_arp_table(ip='10.0.1.100') print mydevice.get_arp_table(mac='52:54:00:12:00:00') print mydevice.get_arp_table(mac='52:54:00:12:35:03') print mydevice.get_arp_table(mac='08:00:27:27:03:8e') print mydevice.get_arp_table(interface='eth0') print mydevice.get_arp_table(interface='eth1') print mydevice.get_arp_table(ip='10.0.2.3', interface='eth0') print mydevice.get_arp_table(ip='10.0.2.3', interface='eth1')
[{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}, {'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] specific params [] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] [{'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] [] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] [{'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] [{'interface': u'eth1', 'ip': u'10.0.1.100', 'mac': u'08:00:27:27:03:8e', 'age': 0.0}] [{'interface': u'eth0', 'ip': u'10.0.2.3', 'mac': u'52:54:00:12:35:03', 'age': 0.0}] []