On Tue, 07 Aug 2018 00:51:39 +0900, Marcio wrote: > > [1 <multipart/alternative (7bit)>] > [1.1 <text/plain; UTF-8 (7bit)>] > Dear, > > I have a question. When the BGPSpeaker receives a withdraw, i can get it > from best_path_change_handler and remove it from a data structure that are > storing the best routes to each network to feed the dataplane but if we > have a second best route to the same network? > > When i receive a withdraw i need to remove the best route and add the > current second best route(if it exists) in my data structure. Is there a > way to do that? How could i get the new best route from BGP Control Plane > if it exists? > > I hope you understood the question.
IIUC, you'll get another call to best_path_change_handler with is_withdraw==False which indicates the new best path. Is that what you need? -- IWAMOTO Toshihiro ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel