blob: 323708e93c655e72b3f66528756c19725ce011f0 [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
16 return impl.GetActiveLinks();
17
18 }
19
20}