get_port_macs returns all port MACs

This commit is contained in:
Oliver Gorwits
2014-04-30 22:29:40 +01:00
parent f6c394c9b3
commit 64951c3b9b
2 changed files with 11 additions and 2 deletions

View File

@@ -21,10 +21,13 @@ subroutines.
=head1 EXPORT_OK
=head2 get_port_macs( $device )
=head2 get_port_macs
Returns a Hash reference of C<< { MAC => IP } >> for all interface MAC
addresses on a device.
addresses on all devices.
If you need to filter for a given device, simply compare the IP (hash value)
to your device's IP.
=cut