Skip to content
Snippets Groups Projects
Commit 726aeaf7 authored by Alex Reimers's avatar Alex Reimers
Browse files

Move the switchcluster REST API from /wm/core/controller/switchclusters/json...

Move the switchcluster REST API from /wm/core/controller/switchclusters/json to /wm/topology/switchclusters/json. [#23518013]
parent dbcadb46
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