return interfaceList;
}
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Path("{ipAddress}")
<BUG>public OnmsIpInterface getIpInterface(@PathParam("nodeId") int nodeId, @PathParam("ipAddress") String ipAddress) {

OnmsNode node = m_nodeDao.get(nodeId);

if (node == null)

throwException(Status.BAD_REQUEST, "getIpInterface: can't find node " + nodeId);

return node.getIpInterfaceByIpAddress(ipAddress);</BUG>
}

return interfaceList;
}
@GET
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Path("{ipAddress}")
public OnmsIpInterface getIpInterface(@PathParam("nodeCriteria") String nodeCriteria, @PathParam("ipAddress") String ipAddress) {
OnmsNode node = m_nodeDao.get(nodeCriteria);
if (node == null) {
throwException(Status.BAD_REQUEST, "getIpInterface: can't find node " + nodeCriteria);
}
return node.getIpInterfaceByIpAddress(ipAddress);
}
