ospf2dot - convert OSPF LSDB YAML to Graphviz dot
ospf2dot [-46bBceEhlpPsSwWv] [ospf.yaml] [ospf.dot]
ospf2dot takes an OSPF link state database in YAML format and converts it into a Graphviz dot graph that shows the topology of the autonomous system. Per default only networks, router and links are displayed. Other LSA types have to be turned on explicitly.
The regular color of the graph is gray, each area gets its own brightness. The OSPF LSDB is checked for consistency. Erroneous vertexes or links get colored depending on the detected problem. The error messages can be displayed as tooltip in an SVG graph or printed to stderr.
Optionally one input and one output file can be given on command line, otherwise stdin and stdout are used.
The options are as follows:
Disable IPv6. Default is the address family in YAML input file.
Enable IPv6. Default is the address family in YAML input file.
Display AS boundary router summary LSAs.
Display AS boundary router summary LSAs aggregated. A single node contains all boundary routers advertised from the same router.
Identical networks are clustered into a subgraph. This visualizes duplicate networks.
Display AS extrnal LSAs.
Display AS extrnal LSAs aggregated. A single node contains all external networks advertised from the same router.
Show help message and exit.
Generate legend as dot graph which contains all kinds of nodes and edges. The corresponding OSPF object is explained. Use -4 or -6 to choose the address family. Unimplemented features are displayed in red.
Display IPv6 link and intra-area-prefix LSAs.
Display IPv6 intra-area-prefix LSAs. They are constructed from the link LSAs by the designated router.
Display IP network summary LSAs.
Display IP network summary LSAs aggregated. A single node contains all networks advertised from the same router.
Show the most serious warning in the dot graph. That warning also accounts for the color. If there is no warning, the area is displayed.
Note that this message is always shown as tool tip in SVG graphs.
Show the all areas and warnings in the dot graph.
Be verbose and print all warnings to stderr.
ospf2dot -BSE ospf.yaml | dot -Tsvg -o ospf.svg
The program dies if an error occurs. Typical errors are invalid YAML format, version of input file is newer than this program so it cannot be converted or the content of the YAML file is invalid.