dhcp-lease-list script: Don't show manufacturer.

It is quite inefficient and scales badly.  Disble this feature
and just show the MAC address since we want to be able to call this
script often.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2019-05-08 15:12:01 -07:00
parent 81793019bd
commit 0721f96a7f

View File

@@ -127,7 +127,8 @@ sub process_leases() {
'date_end' => $date_end, 'date_end' => $date_end,
'mac' => $mac, 'mac' => $mac,
'hostname' => $hostname, 'hostname' => $hostname,
'manu' => get_manufactorer_for_mac($mac), # Too slow. --Ben 'manu' => get_manufactorer_for_mac($mac),
'manu' => "",
); );
$entry{'date_begin'} =~ s#\/#-#g; # long live ISO 8601 $entry{'date_begin'} =~ s#\/#-#g; # long live ISO 8601
@@ -213,7 +214,7 @@ sub cli_processing() {
# main() # main()
# #
cli_processing(); cli_processing();
check_oui_file(); #check_oui_file();
read_dhcpd_leases(); read_dhcpd_leases();
process_leases(); process_leases();
output_leases(); output_leases();