blob: 8eae558c830707c215aab0b6edfb1479a339c1af [file] [log] [blame]
HIGUCHI Yutaa56fbde2013-06-17 14:26:05 -07001package net.onrc.onos.ofcontroller.linkdiscovery.web;
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08002
3import net.floodlightcontroller.restserver.RestletRoutable;
4
5import org.restlet.Context;
6import org.restlet.routing.Router;
7
8public class LinkDiscoveryWebRoutable implements RestletRoutable {
9 /**
10 * Create the Restlet router and bind to the proper resources.
11 */
12 @Override
13 public Router getRestlet(Context context) {
14 Router router = new Router(context);
15 router.attach("/autoportfast/{state}/json", AutoPortFast.class); // enable/true or disable/false
16 return router;
17 }
18
19 /**
20 * Set the base path for the Topology
21 */
22 @Override
23 public String basePath() {
24 return "/wm/linkdiscovery";
25 }
26}