blob: 47a09f3173b264a102a34499a92b8480a0c20375 [file] [log] [blame]
package net.floodlightcontroller.linkdiscovery.web;
import java.util.List;
import net.floodlightcontroller.routing.Link;
import net.onrc.onos.ofcontroller.linkdiscovery.internal.TopoLinkServiceImpl;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
public class TopoLinksResource extends ServerResource {
@Get("json")
public List<Link> retrieve() {
TopoLinkServiceImpl impl = new TopoLinkServiceImpl();
List<Link> retval = impl.getActiveLinks();
return retval;
}
}