Jonathan Hart | 5afde49 | 2013-10-01 12:30:53 +1300 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.proxyarp; |
2 | |||||
3 | import java.util.List; | ||||
4 | |||||
5 | import org.restlet.resource.Get; | ||||
6 | import org.restlet.resource.ServerResource; | ||||
7 | |||||
8 | public class ArpCacheResource extends ServerResource { | ||||
9 | |||||
10 | @Get("json") | ||||
11 | public List<String> getArpCache() { | ||||
12 | IProxyArpService arp = (IProxyArpService) getContext().getAttributes(). | ||||
13 | get(IProxyArpService.class.getCanonicalName()); | ||||
14 | |||||
15 | return arp.getMappings(); | ||||
16 | } | ||||
17 | |||||
18 | } |