NAME

Net::ISC::DHCPd::OMAPI::Actions - Common actions on OMAPI objects

DESCRIPTION

Changing object attributes will not alter the attributes on server. To do so, either use set() directly or use write() after altering attributes.

ATTRIBUTES

parent

$omapi_obj = $self->parent;

errstr

$str = $self->errstr;

extra_attributes

$hash_ref = $self->extra_attributes;

Contains all attributes, which is not defined for the OMAPI object.

METHODS

read

$int = $self->read;

Open an object. Returns the number of attributes read. 0 = not in server.

It looks up an object on server, by all the attributes that has action lookup. Will update all attributes in the local object, and setting all unknown objects in extra_attributes.

write

$bool = $self->write;
$bool = $self->write(@attributes);

Will set attributes on server object.

@attributes is by default every attribute on create, or every attribute with action "modify" on update.

unset

$bool = $self->unset(@attributes);

Will unset values for an object in DHCP server. See set() for details about @attributes.

remove

$bool = $self->remove;

AUTHOR

See Net::ISC::DHCPd.