NAME

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

OBJECT 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"

filehandle

$glob = $self->filehandle;
$bool = $self->has_filehandle;
$self->clear_filehandle;

Holds the filehande to l<file>.

METHODS

parse

$int = $self->parse;

Read lines from filehandle, 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>.

AUTHOR

Jan Henning Thorsen