use of org.onosproject.dhcprelay.api.DhcpRelayService in project onos by opennetworkinglab.
the class DhcpRelayWebResource method resetDhcpRelayCountersInternal.
/**
* To reset dhcp relay counters.
*
* @return counterArray type ArrayNode.
*/
private void resetDhcpRelayCountersInternal() {
DhcpRelayService dhcpDelayService = get(DhcpRelayService.class);
Collection<DhcpRecord> records = dhcpDelayService.getDhcpRecords();
records.forEach(record -> {
DhcpRelayCounters v6Counters = record.getV6Counters();
v6Counters.resetCounters();
});
}
Aggregations