blob: d1c4605c068693959fb6a4424e1ad5c94ea4a51e [file] [log] [blame]
Komal Shah399a2922014-05-28 01:57:40 -07001package net.onrc.onos.apps.sdnip.web;
2
3import net.onrc.onos.apps.sdnip.ISdnIpService;
4
5import org.restlet.resource.Get;
6import org.restlet.resource.ServerResource;
7
8/**
9 * REST call to start SDN-IP routing.
10 */
11public class SdnIpSetup extends ServerResource {
12 @Get("json")
13 public String sdnipSetupMethod() {
14 ISdnIpService sdnIp = (ISdnIpService) getContext()
15 .getAttributes().get(ISdnIpService.class.getCanonicalName());
16 sdnIp.beginRoutingNew();
17 return "SdnIp SetupBgpPaths Succeeded";
18 }
19
20}