Alexander Bluhm > OSPF-LSDB > OSPF::LSDB::YAML

Download:
OSPF-LSDB-1.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

OSPF::LSDB::YAML - load or dump OSPF link state database as YAML

SYNOPSIS ^

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);

DESCRIPTION ^

The OSPF::LSDB::YAML module allows to load or dump a OSPF::LSDB instance in YAML format.

$self->Dump()

Return the OSPF::LSDB content as YAML string.

$self->DumpFile($filepath)

Write the OSPF::LSDB content as YAML into a file.

$self->Load($string)

Set the OSPF::LSDB base object to the given YAML string. The content is converted to the current version and is validated.

$self->LoadFile($filepath)

Set the OSPF::LSDB base object to the given YAML file. The content is converted to the current version and is validated.

ERRORS ^

The methods die if any error occures.

SEE ALSO ^

OSPF::LSDB,

ospfconvert

AUTHORS ^

Alexander Bluhm

syntax highlighting: