NAME
CfgTie::TieNet -- A module to tie in the net database
SYNOPSIS
tie %net,'CfgTie::TieNet'
DESCRIPTION
This is a straight forward HASH tie that allows us to access the net database sanely.
Ties
There are two ties available for programers:
tie %net,'CfgTie::TieNet'
-
$net{$name}
will return a HASH reference of the named net information tie %net_addr,'CfgTIe::TieNet_addr'
-
$net_addr{$addr}
will return a HASH reference for the specified network address.
Structure of hash
Any given net entry has the following information assoicated with it:
Name
-
net name
Aliases
-
A list reference for other names for this net
AddrType
-
The type of address
Addr
-
The address
Additionally, the programmer can set any other associated key, but this information will only available to running PERL script.
See Also
Cfgfile, CfgTie::TieAliases, CfgTie::TieGeneric, CfgTie::TieGroup, CfgTie::TieHost, CfgTie::TieNamed, CfgTie::TiePh, CfgTie::TieProto, CfgTie::TieServ, CfgTie::TieShadow, CfgTie::TieUser
Cavaets
The current version does cache some net information.
Author
Randall Maas (randym@acm.org)