OSPF::LSDB::Cisco - parse Cisco OSPF link state database
my $cisco = OSPF::LSDB::Cisco->new();
my $cisco = OSPF::LSDB::Cisco->new(ssh => "user@host");
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.
If the object has been created with the
the specified user and host are used to login otherwise
cisco is used as host name.
There is only one public method:
This function takes a hash with file names as value containing the Cisco
show ip ospf output data.
The hash keys are named
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.
The methods die if any error occurs.
Cisco support is experimental. This module is far from complete.
No support for multiple router processes.
No support for IPv6.