NAME

Net::ISC::DHCPd::Leases - Parse ISC DHCPd leases

ATTRIBUTES

leases

$array_ref = $self->leases;

Holds all known lease objects.

file

$str = $self->file;

Holds the path to the dhcpd.leases file.

Default: "/var/lib/dhcp3/dhcpd.leases"

METHODS

filehandle

This method will be deprecated.

parse

$int = $self->parse;

Read lines from "file", and parses every lease it can find. Returns the number of leases found. Will add each found lease to "leases".

add_lease

$bool = $self->add_lease($lease_obj);

All another Net::ISC::DHCPd::Leases::Lease object to the "leases" attribute>.

COPYRIGHT & LICENSE

AUTHOR

See Net::ISC::DHCPd.