blob: 04223ebbff54c2a88d4d5fa0ef7065e791f89378 [file] [log] [blame]
Jonathan Hart382623d2014-04-03 09:48:11 -07001package net.onrc.onos.apps.bgproute;
pingping-lina2cbfad2013-03-07 08:39:21 +08002
3import net.floodlightcontroller.core.module.IFloodlightService;
4
5public interface IBgpRouteService extends IFloodlightService {
6
Ray Milkey269ffb92014-04-03 14:43:30 -07007 //public RibEntry lookupRib(byte[] dest);
Jonathan Hart61ba9372013-05-19 20:10:29 -07008
Ray Milkey269ffb92014-04-03 14:43:30 -07009 //public Ptree getPtree();
10 public IPatriciaTrie<RibEntry> getPtree();
Jonathan Hart61ba9372013-05-19 20:10:29 -070011
Ray Milkey269ffb92014-04-03 14:43:30 -070012 public String getBGPdRestIp();
Jonathan Hart61ba9372013-05-19 20:10:29 -070013
Ray Milkey269ffb92014-04-03 14:43:30 -070014 public String getRouterId();
Jonathan Hart61ba9372013-05-19 20:10:29 -070015
Ray Milkey269ffb92014-04-03 14:43:30 -070016 public void clearPtree();
17
18 /**
Ray Milkeyb41100a2014-04-10 10:42:15 -070019 * Pass a RIB update to the {@link IBgpRouteService}.
Ray Milkey269ffb92014-04-03 14:43:30 -070020 *
21 * @param update
22 */
23 public void newRibUpdate(RibUpdate update);
24
25 //TODO This functionality should be provided by some sort of Ptree listener framework
26 //public void prefixAdded(PtreeNode node);
27 //public void prefixDeleted(PtreeNode node);
pingping-lina2cbfad2013-03-07 08:39:21 +080028}