Skip to content
Snippets Groups Projects
Commit a616db64 authored by abat's avatar abat
Browse files

Merge into master from pull request #16:

Move the SwitchCluster REST API from core into topology. (https://github.com/floodlight/floodlight/pull/16)
parents dbcadb46 726aeaf7
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,6 @@ public class CoreWebRoutable implements RestletRoutable {
router.attach("/switch/all/{statType}/json", AllSwitchStatisticsResource.class);
router.attach("/switch/{switchId}/{statType}/json", SwitchStatisticsResource.class);
router.attach("/controller/switches/json", ControllerSwitchesResource.class);
router.attach("/controller/switchclusters/json", SwitchClustersResource.class);
router.attach("/counter/{counterTitle}/json", CounterResource.class);
router.attach("/counter/{switchId}/{counterName}/json", SwitchCounterResource.class);
router.attach("/counter/categories/{switchId}/{counterName}/{layer}/json", SwitchCounterCategoriesResource.class);
......
......@@ -5,19 +5,25 @@ import org.restlet.Restlet;
import org.restlet.routing.Router;
import net.floodlightcontroller.core.web.RestletRoutable;
import net.floodlightcontroller.core.web.SwitchClustersResource;
public class TopologyWebRouteable implements RestletRoutable {
/**
* Create the Restlet router and bind to the proper resources.
*/
@Override
public Restlet getRestlet(Context context) {
Router router = new Router(context);
router.attach("/links", LinksResource.class);
router.attach("/links/json", LinksResource.class);
router.attach("/switchclusters/json", SwitchClustersResource.class);
return router;
}
/**
* Set the base path for the Topology
*/
@Override
public String basePath() {
return "/wm/topology";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment