From 64951c3b9b6da343ae6458b59ce90b11bb5f7fd8 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 30 Apr 2014 22:29:40 +0100 Subject: [PATCH] get_port_macs returns all port MACs --- Netdisco/Changes | 6 ++++++ Netdisco/lib/App/Netdisco/Util/PortMAC.pm | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index 23d5e8f4..e221da2a 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -1,3 +1,9 @@ +2.027001 - + + [BUG FIXES] + + * get_port_macs returns all port MACs + 2.027000 - 2014-04-30 [ENHANCEMENTS] diff --git a/Netdisco/lib/App/Netdisco/Util/PortMAC.pm b/Netdisco/lib/App/Netdisco/Util/PortMAC.pm index 72836397..5b75e478 100644 --- a/Netdisco/lib/App/Netdisco/Util/PortMAC.pm +++ b/Netdisco/lib/App/Netdisco/Util/PortMAC.pm @@ -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