In my routing protocol, I want to update the routing table dynamically at a periodic interval, as of now, I am adding route entries to the routing table from my agent, by sending the RouteDiscoveryNtf
message to the router agent, which is similar to using addroute
closure in the shell.
I want to know, How I can delete the route entries. So that, I can update the routing table with new entries. As the, delroute
, delroutesto
,delroutes
closures, which works in shell, cannot be used in an agent.
Also I want to know is my approach is right for updating the routing table dynamically or is there any other better way for doing this. Kindly help.