Download TOTEM Project: User Guide - TOolbox for Traffic Engineering Methods

Transcript
- 9 A STANDARD XML FORMAT FOR A SCENARIO REPRESENTATION
Page 48 of 82
9.9.1 CBGPExecute
The CBGPExecute element is used to run a single C-BGP command. It requires a single attribute, command, of type string. The parameter contains a C-BGP command which will be
executed by C-BGP if it is valid. Please refer to the C-BGP documentation [11] for more information on the available commands.
9.9.2 CBGPInfo
The CBGPInfo element is used to extract information from C-BGP. It requires an attribute, info,
of type string. This parameter indicates which information type is requested. For each information type, additional parameters are requested. These parameters must be specified using the
params attribute. The CBGPInfo currently supports the following information types:
• Links : Dumps all the links of the node identified by the parameter router. The router
parameter must contain the IP address of the node.
• Peers : Dumps all the BGP peers of the router identified by the parameter router. The router
parameter must contain the IP address of the router.
• AdjRIB : Dumps the BGP adjacent routing information base (Adj-RIB) of the router identified by the parameter router. The router parameter must contain the IP address of the router.
The following optional parameters are also understood. First, the peer parameter can be
used to only dump the routes related to this peer. Second, the prefix parameter can be used
to only dump the routes that match this prefix. Finally, the in parameter can be used to select
if the input or output Adj-RIB must be dumped. The default value of in is true, which means
that the Adj-RIB-in are dumped.
• RecordRoute : Traces the route from a source node specified using the src parameter towards a destination node specified using the dst parameter.
• RT : Dumps the routing table of the node identified by the parameter router. The router
parameter must contain the IP address of the node.
• RIB : Dumps the BGP routing information base (RIB) of the router identified by the parameter router. The router parameter must contain the IP address of the router. Note, the
optional prefix parameter described in the AdjRIB information type can also be used for the
RIB information type.
Figure 2 shows an example of use of the CBGPInfo element. The example requests the RIB
of router 10.0.0.1.
<CBGPInfo info="RIB">
<param name="router">10.0.0.1</param>
</CBGPInfo>
Figure 2: Example of the XML CBGPInfo element usage.
Copyright 2004, 2007 - ULg, UCL