blob: 71c3f120912844fa636227e2c1853a5bf69ce58f [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.topology.web;
2
3import java.util.Set;
4
5import net.floodlightcontroller.topology.ITopologyService;
6import net.floodlightcontroller.topology.NodePortTuple;
7
8import org.restlet.resource.Get;
9import org.restlet.resource.ServerResource;
10
11public class TunnelLinksResource extends ServerResource {
12 @Get("json")
13 public Set<NodePortTuple> retrieve() {
14 ITopologyService topology =
15 (ITopologyService)getContext().getAttributes().
16 get(ITopologyService.class.getCanonicalName());
17
18 return topology.getTunnelPorts();
19 }
20}