From 6695f659a12df5e18528717d7fc8f4dd458b76cc Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 23 Aug 2014 13:35:32 +0100 Subject: [PATCH] fix get_arp docs --- Netdisco/lib/App/Netdisco/Core/Arpnip.pm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Netdisco/lib/App/Netdisco/Core/Arpnip.pm b/Netdisco/lib/App/Netdisco/Core/Arpnip.pm index 3480f792..d52d7801 100644 --- a/Netdisco/lib/App/Netdisco/Core/Arpnip.pm +++ b/Netdisco/lib/App/Netdisco/Core/Arpnip.pm @@ -96,14 +96,21 @@ sub _get_arps { return $resolved_ips; } -=head2 store_arp( $mac, $ip, $name, $now? ) +=head2 store_arp( \%host, $now? ) Stores a new entry to the C table with the given MAC, IP (v4 or v6) -and DNS host name. +and DNS host name. Host details are provided in a Hash ref: -Will mark old entries for this IP as no longer C. + { + ip => '192.0.2.1', + node => '00:11:22:33:44:55', + dns => 'myhost.example.com', + } -Optionally a literal string can be passed in the fourth argument for the +The C entry is optional. The update will mark old entries for this IP as +no longer C. + +Optionally a literal string can be passed in the second argument for the C timestamp, otherwise the current timestamp (C) is used. =cut