[Xorp-users] Routing info
Atanu Ghosh
atanu@ICSI.Berkeley.EDU
Tue, 17 Aug 2004 16:30:01 -0700
The XORP BGP process has a mechanism for returning the routing table via
XRLs. In the bgp/tools directory you will find a "print_routes" program
that uses the XRL interface to extract the routes from BGP. There is
another program "xorpsh_print_routes" that is used by the xorpsh to
print routes.
If you want to add the equivalent of "show ip bgp community" from within
the xorpsh then you need to take a look at the "bgp.cmds" in
etc/templates. As well as teaching "xorp_print_routes" about selecting
routes based on communities.
Atanu.
>>>>> "Nathan" == Nathan K <doesnotcount@hotmail.com> writes:
Nathan> What is the easiest way to get bgp's routes from the
Nathan> bgpd. Basically I need all the information that is usually
Nathan> generated by a "show ip bgp" command on a router. What is
Nathan> the best way to do this? Does an xrl call to the BGPD
Nathan> currently exist that could give me this information, or will
Nathan> I have to write one. And if I have to write one, where would
Nathan> this information be stored?
Nathan> I also need to be able to get the routes for a specific
Nathan> community. Some routers offer a "show ip bgp community
Nathan> xx:xx::xx:xx" command to allow this.
Nathan> Thanks for your help.
Nathan> -Nathan.
Nathan> _________________________________________________________________
Nathan> Take advantage of powerful junk e-mail filters built on
Nathan> patented Microsoft® SmartScreen
Nathan> Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Nathan> Start enjoying all the benefits of MSN® Premium right now
Nathan> and get the first two months FREE*.
Nathan> _______________________________________________ Xorp-users
Nathan> mailing list Xorp-users@xorp.org
Nathan> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users