NAME
OSPF::LSDB::ospf6d - parse OpenBSD ospf6d link state database
SYNOPSIS
use OSPF::LSDB::ospf6d;
my $ospf6d = OSPF::LSDB::ospf6d->new();
my $ospf6d = OSPF::LSDB::ospf6d->new(ssh => "user@host");
$ospf6d->parse(%files);
DESCRIPTION
The OSPF::LSDB::ospf6d module parses the output of OpenBSD ospf6ctl and fills the OSPF::LSDB base object. The output of show summary
, show database router
, show database network
, show database summary
, show database asbr
, show database external
show database link
show database intra
is needed. It can be given as separate files or obtained dynamically. In the latter case doas is invoked if permissions are not sufficient to run ospf6ctl. If the object has been created with the ssh
argument, the specified user and host are used to login and run ospf6ctl there.
There is only one public method:
- $self->parse(%files)
-
This function takes a hash with file names as value containing the ospf6ctl output data. The hash keys are named
selfid
,router
,network
,summary
,boundary
,external
,link
,intra
. If a hash entry is missing, ospf6ctl is run instead to obtain the information dynamically.The complete OSPF link state database is stored in the ospf field of the base class.
This module has been tested with OpenBSD 5.1. If it works with other versions is unknown.
ERRORS
The methods die if any error occurs.
SEE ALSO
AUTHORS
Alexander Bluhm