Net::ISC::DHCPd::Config::Role - Generic config methods and attributes
See the Net::ISC::DHCPd::Config manpage for synopsis.
The parent node in the config tree.
The root node in the config tree.
How far this node is from the root node.
List of possible child nodes.
Regex to match for the node to be added.
Regex to search for before ending the current node block.
Will not be used if the node does not have any possible children.
$int = $self->parse
Parses a current node recursively. Does this by reading line by line from file, and use the rules from the possible child elements and endpoint.
$hash_ref = $self->captured_to_args(@list);
Called when a regex matches, with a list of captured strings.
$self->captured_endpoint(@list)
Called when a endpoint matches, with a list of captured strings.
My::Class->create_children(@classnames)
This method is used internally to create extra attributes in classes and construct the children attribute.
$config_text = $self->generate_config_from_children;
Loops all child node and calls generate.
@lines = $self->generate;
A generate()
must be defined in the consuming class. This method should
a list of lines (zero or more), which will be indented and concatenated
inside generate_config_from_children.