IPAddress into IntentFramework Fixed & SDN-IP SetupBGPPaths

Change-Id: Ie25571ad9c9c834e476a5010e29175c9fb6cd3fb
diff --git a/src/main/java/net/onrc/onos/apps/sdnip/web/SdnIpSetup.java b/src/main/java/net/onrc/onos/apps/sdnip/web/SdnIpSetup.java
new file mode 100644
index 0000000..d1c4605
--- /dev/null
+++ b/src/main/java/net/onrc/onos/apps/sdnip/web/SdnIpSetup.java
@@ -0,0 +1,20 @@
+package net.onrc.onos.apps.sdnip.web;
+
+import net.onrc.onos.apps.sdnip.ISdnIpService;
+
+import org.restlet.resource.Get;
+import org.restlet.resource.ServerResource;
+
+/**
+ * REST call to start SDN-IP routing.
+ */
+public class SdnIpSetup extends ServerResource {
+    @Get("json")
+    public String sdnipSetupMethod() {
+        ISdnIpService sdnIp = (ISdnIpService) getContext()
+                              .getAttributes().get(ISdnIpService.class.getCanonicalName());
+        sdnIp.beginRoutingNew();
+        return "SdnIp SetupBgpPaths Succeeded";
+    }
+
+}