[Xorp-hackers] Add RIB route
illidan
illidan at lineway.net
Fri Apr 17 06:12:53 PDT 2009
Hello,
I am trying to add a new route to RIB table.
I have my protocols which is running, rib is running and I try to add a
new route by using a method like :
(Constructor )
XrlRibV0p1Client _rib(&xrl_router);
(function)
void
RIBConsensus::add_route4(IPv4Net subnet,IPv4 next_hop,uint32
metric,PolicyTags policy) {
XorpCallback1<void, const XrlError&>::RefPtr cb;
cb = callback(this,&RIBConsensus::add_route4_cb);
XLOG_INFO("Try to add route\n");
_rib.send_add_route4("rib","consensus",true,true,subnet,next_hop,metric,policy.xrl_atomlist(),cb);
}
But I get an error :
[ 2009/04/17 13:33:40 ERROR xorp_rib:21899 RIB +758 rib.cc add_route ]
Attempting to add route to unknown table "consensus".
[ 2009/04/17 13:33:40 WARNING xorp_rib XrlRibTarget ] Handling method
for rib/0.1/add_route4 failed: XrlCmdError 102 Command failed Could not
add IPv4 route net 192.168.0.0/24, nexthop: 10.10.10.10 to unicast RIB
"Consensus" is the name of my protocol.
How should I register it in RIB?
Thanks in advance!
Michael
More information about the Xorp-hackers
mailing list