Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
According to issue #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}]
[]