Renamed SDN-IP packages and classes.
The code use to use the name 'BgpRoute' in a number of places, which is not
descriptive and doesn't map to how we talk about SDN-IP (we always call it
SDN-IP in all other documents/presentations).
Details of changes are as follows:
net.onrc.onos.apps.bgproute -> net.onrc.onos.apps.sdnip
BgpRoute.java -> SdnIp.java
IBgpRouteService.java -> ISdnIpService.java
created new package for web classes: net.onrc.onos.apps.sdnip.web
BgpRouteResource.java -> IncomingRequestResource.java
BgpRouteResourceSynch.java -> OutgoingRequestResource.java
BgpRouteWebRoutable.java -> SdnIpWebRoutable.java
Change-Id: Ie6b1cbe4e95736d4cbd53b9f4def7cc3e0b46132
diff --git a/src/main/java/net/onrc/onos/apps/sdnip/ISdnIpService.java b/src/main/java/net/onrc/onos/apps/sdnip/ISdnIpService.java
new file mode 100644
index 0000000..040afe6
--- /dev/null
+++ b/src/main/java/net/onrc/onos/apps/sdnip/ISdnIpService.java
@@ -0,0 +1,48 @@
+package net.onrc.onos.apps.sdnip;
+
+import net.floodlightcontroller.core.module.IFloodlightService;
+
+/**
+ * The API exported by the main SDN-IP class. This is the interface between the
+ * REST handlers and the SDN-IP module.
+ */
+public interface ISdnIpService extends IFloodlightService {
+
+ /**
+ * Gets a reference to SDN-IP's PATRICIA tree which stores the route table.
+ *
+ * XXX This is a poor API because it exposes internal state of SDN-IP.
+ *
+ * @return the PATRICIA tree.
+ */
+ public IPatriciaTree<RibEntry> getPtree();
+
+ /**
+ * Gets the IP address of REST server on the BGPd side. This is used to
+ * communicate with BGPd.
+ *
+ * @return the IP address as a String
+ */
+ public String getBgpdRestIp();
+
+ /**
+ * Gets the router ID, which is sent to BGPd to identify the route table
+ * we're interested in.
+ *
+ * @return the router ID as a String
+ */
+ public String getRouterId();
+
+ /**
+ * Clears SDN-IP's route table.
+ */
+ public void clearPtree();
+
+ /**
+ * Pass a RIB update to the {@link ISdnIpService}.
+ *
+ * @param update a {@link RibUpdate} object containing details of the
+ * update
+ */
+ public void newRibUpdate(RibUpdate update);
+}