blob: 39ecbfae82a6396cea92f13cdcf81273c44b7c81 [file] [log] [blame]
package net.onrc.onos.core.linkdiscovery.web;
import net.floodlightcontroller.restserver.RestletRoutable;
import org.restlet.Context;
import org.restlet.routing.Router;
public class LinkDiscoveryWebRoutable implements RestletRoutable {
/**
* Create the Restlet router and bind to the proper resources.
*/
@Override
public Router getRestlet(Context context) {
Router router = new Router(context);
router.attach("/links/json", LinksResource.class);
router.attach("/autoportfast/{state}/json", AutoPortFast.class); // enable/true or disable/false
return router;
}
/**
* Set the base path for the Topology.
*/
@Override
public String basePath() {
return "/wm/onos/linkdiscovery";
}
}