Komal Shah | 399a292 | 2014-05-28 01:57:40 -0700 | [diff] [blame] | 1 | package net.onrc.onos.apps.sdnip.web; |
| 2 | |
| 3 | import net.onrc.onos.apps.sdnip.ISdnIpService; |
| 4 | |
| 5 | import org.restlet.resource.Get; |
| 6 | import org.restlet.resource.ServerResource; |
| 7 | |
| 8 | /** |
| 9 | * REST call to start SDN-IP routing. |
| 10 | */ |
| 11 | public class SdnIpSetup extends ServerResource { |
| 12 | @Get("json") |
| 13 | public String sdnipSetupMethod() { |
| 14 | ISdnIpService sdnIp = (ISdnIpService) getContext() |
| 15 | .getAttributes().get(ISdnIpService.class.getCanonicalName()); |
pingping-lin | 1ada7ce | 2014-08-14 13:45:22 -0700 | [diff] [blame] | 16 | sdnIp.beginRouting(); |
Komal Shah | 399a292 | 2014-05-28 01:57:40 -0700 | [diff] [blame] | 17 | return "SdnIp SetupBgpPaths Succeeded"; |
| 18 | } |
| 19 | |
| 20 | } |