NAME
OSPF::LSDB::Cisco - parse Cisco OSPF link state database
SYNOPSIS
use OSPF::LSDB::Cisco;
my $cisco = OSPF::LSDB::Cisco->new();
$cisco->parse(%files);
DESCRIPTION
The OSPF::LSDB::Cisco module parses the output of the Cisco OSPF IOS and fills the OSPF::LSDB base object. The output of show ip ospf
, show ip ospf database router
, show ip ospf database network
, show ip ospf database summary
, show ip ospf database asbr-summary
, show ip ospf database external
is needed. It can be given as separate files or obtained dynamically. In the latter case ssh is invoked.
There is only one public method:
- $self->parse(%files)
-
This function takes a hash with file names as value containing the Cisco
show ip ospf
output data. The hash keys are namedselfid
,router
,network
,summary
,boundary
,external
. If a hash entry is missing, ssh to the Cisco router 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 Cisco IOS 12.4. If it works with other versions is unknown.
ERRORS
The methods die if any error occurs.
SEE ALSO
ciscoospf2yaml(1)
AUTHORS
Alexander Bluhm
BUGS
Cisco support is experimental. This module is far from complete.
No support for multiple router processes.
No support for IPv6.