The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::ISC::DHCPd::OMAPI::Host - OMAPI host class

SEE ALSO

Net::ISC::DHCPd::OMAPI::Actions. Net::ISC::DHCPd::OMAPI::Meta::Attribute.

SYNOPSIS

 use Net::ISC::DHCPd::OMAPI;

 $omapi = Net::ISC::DHCPd::OMAPI->new(...);
 $omapi->connect
 $host = $omapi->new_object("host", { $attr => $value });
 $host->read; # retrieve server information
 $host->$attr($value); # update a value
 $host->write; # write to server

ATTRIBUTES

dhcp_client_identifier

 $self->dhcp_client_identifier(??);
 ?? = $self->dhcp_client_identifier;

The client identifier that the client used when it acquired the host. Not all clients send client identifiers, so this may be empty.

Actions: examine, lookup, modify.

group

 $self->group(??);
 ?? = $self->group;

The named group associated with the host declaration, if there is one.

Actions: examine, modify.

hardware_address

 $self->hardware_address($str);
 $str = $self->hardware_address;

The hardware address (chaddr) field sent by the client when it acquired its host.

Actions: examine, lookup, modify.

hardware_type

 $self->hardware_type($str);
 $str = $self->hardware_type;

The type of the network interface that the client reported when it acquired its host.

Actions: examine, lookup, modify.

ip_address

 $self->ip_address($ip_addr_obj);
 $self->ip_address("127.0.0.1"); # standard ip
 $self->ip_address("22:33:aa:bb"); # hex
 $std_ip_str = $self->ip_address;

The IP address of the host.

Actions: examine, modify.

known

 $self->known($bool);
 $bool = $self->known;

name

 $self->name($str);
 $str = $self->name;

The name of the host declaration. This name must be unique among all host declarations.

Actions: examine, lookup, modify.

statements

 $self->statements("foo,bar");
 $self->statements(\@statements);
 $str = $self->statements;

A list of statements in the format of the dhcpd.conf file that will be executed whenever a message from the client is being processed.

Actions: modify

ACKNOWLEDGEMENTS

Most of the documentation is taken from dhcpd(8).

COPYRIGHT & LICENSE

AUTHOR

See Net::ISC::DHCPd.