Net::ACL::Bootstrap - A proxy/bootstrap class for the L class


Net-ACL documentation  | view source Contained in the Net-ACL distribution.

Index


NAME

Top

Net::ACL::Bootstrap - A proxy/bootstrap class for the Net::ACL class

SYNOPSIS

Top

    use Net::ACL::Bootstrap;

    # Constructor
    $list = renew Net::ACL::Bootstrap(
	Name    => 'MyACL',
	Type	=> 'prefix-list',
	);

DESCRIPTION

Top

This module works as a wrapper/proxy/bootstrap for the Net::ACL class.

It makes it possible to renew() a list that has not yet been constructed using its name and type. The real list should be constructed before any method is used on this object (except name(), type() and fetch()).

CONSTRUCTOR

Top

renew() - create a new Net::ACL::Bootstrap object:
    $list = renew Net::ACL(
        Name    => 'MyACL',
	Type	=> 'prefix-list',
        );

This is the only constructor for Net::ACL::Bootstrap class. The arguments are the same as the renew() constructor of the Net::ACL class.

It either returns an existing Net::ACL object matching the arguments or a reference to the newly created Net::ACL::Bootstrap object.

ACCESSOR METHODS

Top

fetch()

Forces the class to load the reference to the list or croak if that fails.

name()
type()

It is possible to query name and type data of the list, however, not to change them, unless the list is loaded. But only if the list can be loaded, change the name or type can be done.

AUTOLOAD()

All other methods are forwarded to the real Net::ACL object.

SEE ALSO

Top

Net::ACL

AUTHOR

Top

Martin Lorensen <bgp@martin.lorensen.dk>


Net-ACL documentation  | view source Contained in the Net-ACL distribution.