blob: 3990fba00fdf648f072b6ec3e854005e75fc906a [file] [log] [blame]
package net.floodlightcontroller.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("/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/linkdiscovery";
}
}