NAME

Net::ISC::DHCPd::Config - Parse and create ISC DHCPd config

POSSIBLE CONFIG TREE

Config
|- Config::Subnet
| |- Config::Option
| |- Config::Declaration
| |- Config::Range
| |- Config::Host
| | |- ...
| |- Config::Filename
| '- Config::Pool
| |- Option
| |- Range
| '- KeyValue
|
|- Config::SharedNetwork
| |- Config::Subnet
| | |- ...
| |- Config::Declaration
| '- Config::KeyValue
|
|- Config::Group
| |- Config::Host
| | |- ...
| |- Config::Option
| |- Config::Declaration
| '- Config::KeyValue
|
|- Config::Host
| |- Config::Option
| |- Config::Filename
| |- Config::Declaration
| '- Config::KeyValue
|
|- Config::OptionSpace
| '- Config::OptionSpace::Option
|
|- Config::Option
|- Config::Declaration *
|- Config::Function
|- Config::KeyValue
'- Config::Single *

OBJECT ATTRIBUTES

file

$str = $self->file;

Holds the path to the config file.

filehandle

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

Holds the filehande to l<file>.

root

$self = $self->root;

parent

$self = $self->parent;

subnets

List of parsed Net::ISC::DHCPd::Config::Subnet objects.

hosts

List of parsed Net::ISC::DHCPd::Config::Host objects.

options

List of parsed Net::ISC::DHCPd::Config::Option objects.

METHODS

generate

$config_text = $self->generate;

Will turn object tree into a actual config, which can be written to file.

AUTHOR

Jan Henning Thorsen