OSPF::LSDB::YAML - load or dump OSPF link state database as YAML
use OSPF::LSDB;
use OSPF::LSDB::YAML;
my $ospf = OSPF::LSDB->new();
my $yaml = OSPF::LSDB::YAML->new($ospf);
$string = $yaml->Dump();
$yaml->DumpFile($filename);
$yaml->Load($string);
$yaml->LoadFile($filename);
The OSPF::LSDB::YAML module allows to load or dump a OSPF::LSDB instance in YAML format.
Return the OSPF::LSDB content as YAML string.
Write the OSPF::LSDB content as YAML into a file.
Set the OSPF::LSDB base object to the given YAML string. The content is converted to the current version and is validated.
Set the OSPF::LSDB base object to the given YAML file. The content is converted to the current version and is validated.
The methods die if any error occures.
OSPF::LSDB,
ospfconvert
Alexander Bluhm
To install OSPF::LSDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OSPF::LSDB
CPAN shell
perl -MCPAN -e shell install OSPF::LSDB
For more information on module installation, please visit the detailed CPAN module installation guide.