blob: 4bed42575a0524677f6219b24e6511ad0fe68e00 [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());
pingping-lin1ada7ce2014-08-14 13:45:22 -070016 sdnIp.beginRouting();
Komal Shah399a2922014-05-28 01:57:40 -070017 return "SdnIp SetupBgpPaths Succeeded";
18 }
19
20}