diff options
-rwxr-xr-x | sitesummary-nodes | 20 |
1 files changed, 0 insertions, 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(<FILE>) { - 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}); |