blob: f69180d6d68cbdf0c295e223023a70b728d5b2d5 [file] [log] [blame]
package net.floodlightcontroller.flowcache.web;
import net.floodlightcontroller.flowcache.IFlowService;
import net.floodlightcontroller.util.FlowId;
import org.openflow.util.HexString;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MeasurementClearAllPathsFlowResource extends ServerResource {
protected static Logger log = LoggerFactory.getLogger(MeasurementClearAllPathsFlowResource.class);
@Get("json")
public Boolean retrieve() {
Boolean result = false;
IFlowService flowService =
(IFlowService)getContext().getAttributes().
get(IFlowService.class.getCanonicalName());
if (flowService == null) {
log.debug("ONOS Flow Service not found");
return result;
}
// Extract the arguments
log.debug("Measurement Clear All Paths");
// Process the request
result = flowService.measurementClearAllPaths();
return result;
}
}