From 83daba8c63a6c8be4f11a92377c2966b607e326e Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 11 Jun 2008 21:18:12 +0000 Subject: Typo. --- sitesummary-nodes | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/sitesummary-nodes b/sitesummary-nodes index cc0b376..c5b2f70 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -84,26 +84,6 @@ EOF } } -sub get_primary_macaddress { - my $hostid = shift; - my $path = get_filepath_current($hostid, "/system/ifconfig-a"); - # XXX Not properly implemented, just pick the first interface - my $macaddress; - if (open (FILE, $path)) { - while() { - chomp; - if (m/Link encap:Ethernet\s+HWaddr (\S+)\s+/) { - $macaddress = $1; - last; - } - } - close(FILE); - return $macaddress; - } else { - return undef; - } -} - sub print_ip_hw_list { for my $hostname (sort keys %hostnames) { my $macaddress = get_primary_macaddress($hostnames{$hostname}); -- cgit v1.2.3