NAME
OSPF::LSDB::gated - parse gated OSPF link state database
SYNOPSIS
use OSPF::LSDB::gated;
my $gated = OSPF::LSDB::gated->new();
$gated->parse(%todo);
DESCRIPTION
The OSPF::LSDB::gated module parses the OSPF part of a gated dump file and fills the OSPF::LSDB base object. An existing gated_dump file can be given or it can be created dynammically. In the latter case sudo is invoked if permissions are not sufficient to run gdc dump.
There is only one public method:
- $self->parse(%todo)
-
This function takes a hash describing how the OSPF LSDB can be obtained. The bool value of
dump
specifies wether the dump file should be created dynamically by calling gdc dump. Thefile
parameter contains the path to the gated_dump file, it defaults to /var/tmp/gated_dump. The dump file may contain more than one instance of the gated memory dump separated by form feeds. If the numeric skip paremeter is set, that many dumps from the beginning of the file are skipped and the next one is used.The complete OSPF link state database is stored in the ospf field of the base class.
This module has been tested with gated 3.6. If it works with other versions is unknown.
ERRORS
The methods die if any error occurs.
SEE ALSO
gated2yaml(1)
AUTHORS
Alexander Bluhm