Reselecting route peer in MRF
Does anyone know how to get the router in MRF to reselect a new peer?
I have MRF working for a custom protocol, and can either have it round robin the mesasges between peers, or always send messages to a particular peer (until it fails). However, what I'd like to get to is at some point be able to tell the router to reselect the peer to use.
The only time I seem to be able to get it to do a reselect properly is when a peer is taken down and the MR_FAILED event is triggered wherein I call
MR::message nexthop none
MR::retry
I suspect I need to delete the route entry that is currently configured, however doing anything with GENERICMESSAGE::route delete doesn't seem to make much difference (within MR_INGRESS)
Wondering if anyone has done something similar with using MRF and can point me in the right direction?