Net::ISC::DHCPd::OMAPI::Sugar - Moose sugar for omapi classes
use Net::ISC::DHCPd::OMAPI::Sugar; # not use Moose omapi_attr foo => ( isa => State, ... );
omapi_attr $name => %attr;
%attr is by default:
%attr
( is => "rw", predicate => "has_$name", traits => [qw/Net::ISC::DHCPd::OMAPI::Meta::Attribute/], )
It will also set "coerce => 1", when "isa" is one of Moose types from Net::ISC::DHCPd::Types.
See Net::ISC::DHCPd.
To install Net::ISC::DHCPd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ISC::DHCPd
CPAN shell
perl -MCPAN -e shell install Net::ISC::DHCPd
For more information on module installation, please visit the detailed CPAN module installation guide.