blob: 252e66ecbc4172c9f54e1a1b76a454de9dc20d4a [file] [log] [blame]
package net.onrc.onos.ofcontroller.proxyarp;
import java.util.List;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
public class ArpCacheResource extends ServerResource {
@Get("json")
public List<String> getArpCache() {
IProxyArpService arp = (IProxyArpService) getContext().getAttributes().
get(IProxyArpService.class.getCanonicalName());
return arp.getMappings();
}
}