blob: 25b68fb5e6256f10eaf3a382bb7aec4c18511bbd [file] [log] [blame]
Pankaj Berde5024ec12013-01-31 17:07:29 -08001package net.floodlightcontroller.linkdiscovery.web;
2
3import java.util.List;
4import net.floodlightcontroller.linkdiscovery.internal.TopoLinkServiceImpl;
5import net.floodlightcontroller.routing.Link;
6
7import org.restlet.resource.Get;
8import org.restlet.resource.ServerResource;
9
10public class TopoLinksResource extends ServerResource {
11
12 @Get("json")
13 public List<Link> retrieve() {
14 TopoLinkServiceImpl impl = new TopoLinkServiceImpl();
15
Pankaj Berde1cde50b2013-02-19 20:16:06 -080016 List<Link> retval = impl.getActiveLinks();
Pankaj Berded18c7622013-02-04 10:28:35 -080017 return retval;
Pankaj Berde5024ec12013-01-31 17:07:29 -080018 }
19
20}