[Xorp-users] error with XRLs
Jeff Krasky
kras0021@umn.edu
Wed, 02 Feb 2005 17:06:01 CST
> 1. Add a rtrmgr template to etc/templates/your_protocol.tp that will
> contain the rtrmgr template how to configure your protocol, the
> XRLs sent to your protocol to configure it, etc.
> Then, when you run xorp_rtrmgr, it will start the XORP finder,
> your protocol, etc and everything else that is needed.
>
> 2. Start libxipc/xorp_finder by hand before starting your protocol.
I went with option #1 since I can't have more than one finder on the same
machine. I wrote a ${Xorp}/etc/templates/bgp_beacon.tp file that looks
like this:
protocols {
bgp_beacon {
targetname: txt = "bgp_beacon";
import: txt;
export: txt;
}
}
protocols {
bgp_beacon {
%modinfo: provides bgp_beacon;
%modinfo: depends bgp;
%modinfo: path "bgp_beacon/bgp_beacon";
%modinfo: default_targetname "bgp_beacon";
}
}
I copied and modified the bgp.tp file. My program, bgp_beacon, doesn't
need to do much. All I want it to do is make a few XRL calls on
XrlBgpV0p2Client. I give my program all of the necessary data it needs
when I start it up from the command line.
I still get the same error.
Questions:
1) Was adding this .tp file supposed to tell Xorp to start my program up
automatically? When I run xorp_rtrmgr, I see that it runs module
interfaces, then module fea, then module rib, then module bgp. Do I have
to somehow have it run module bgp_beacon next?
2) If it is ok to just start my program from a different shell, what else
do I need to do?
3) Any hints on the .tp file? I took my best guess when deciding what to
keep/modify from the bgp.tp file.
Thanks,
Jeff