| 1 | package Net::ISC::DHCPd::OMAPI::Lease; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Net::ISC::DHCPd::OMAPI::Lease - OMAPI lease class | ||
| 6 | |||
| 7 | =head1 DESCRIPTION | ||
| 8 | |||
| 9 | This class does the roles L<Net::ISC::DHCPd::OMAPI::Actions> | ||
| 10 | and L<Net::ISC::DHCPd::Role::Lease>. See also | ||
| 11 | L<Net::ISC::DHCPd::OMAPI::Meta::Attribute>. | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | use Net::ISC::DHCPd::OMAPI; | ||
| 16 | |||
| 17 | $omapi = Net::ISC::DHCPd::OMAPI->new(...); | ||
| 18 | $omapi->connect | ||
| 19 | $lease = $omapi->new_object("lease", { $attr => $value }); | ||
| 20 | $lease->$attr($value); # same as in constructor | ||
| 21 | $lease->read; # retrieve server information | ||
| 22 | $lease->write; # write to server | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | 2 | ▶ | use Net::ISC::DHCPd::OMAPI::Sugar; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | |||
| 29 | 2 | with qw/ | |
| 30 | Net::ISC::DHCPd::Role::Lease | ||
| 31 | Net::ISC::DHCPd::OMAPI::Actions | ||
| 32 | /; | ||
| 33 | |||
| 34 | =head1 COPYRIGHT & LICENSE | ||
| 35 | |||
| 36 | =head1 AUTHOR | ||
| 37 | |||
| 38 | See L<Net::ISC::DHCPd>. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | 2 | __PACKAGE__->meta->make_immutable; | |
| 42 | 2 | 1; | |