Documentation

rtshowindex

Name

net node show spt -  shows the current SPT computed for this node

Synopsis

spt [--output=]

Arguments

--output=
optional output file

Description

This command shows the SPT computed by the IGP model for this node. The SPT is shown using the graphviz (http://www.graphviz.org) graph format. It shall then be rendered using the "dot" utility.

Here is an example output: cbgp> net node 1.0.0.0 show spt
/**
* SPT graphviz dot file
* generated by C-BGP
*
* Render with: dot -Tps <file.dot> <file.ps>
*/
digraph G {
  "1.0.0.0" [shape=box,style=bold] ;
  "1.0.0.1" [shape=box] ;
  "1.0.0.0" -> "1.0.0.1" [label=1] ;
  "1.0.0.2" [shape=box] ;
  "1.0.0.1" -> "1.0.0.2" [label=2] ;
  "1.0.0.3" [shape=box] ;
  "1.0.0.1" -> "1.0.0.3" [label=2] ;
  "1.0.0.4" [shape=box] ;
  "1.0.0.3" -> "1.0.0.4" [label=3] ;
  "192.168.0.2/30" -> "1.0.0.4" [label=3] ;
  "192.168.0.2/30" [shape=ellipse] ;
  "1.0.0.3" -> "192.168.0.2/30" [label=3] ;
}

See also

See command net domain X compute to learn how an SPT can be computed for one node.