use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfigBuilder in project netvirt by opendaylight.
the class QosAlertManager method writeConfigDataStore.
private void writeConfigDataStore(boolean qosAlertEnabled, short dropPacketThreshold, int alertPollInterval) {
InstanceIdentifier<QosalertConfig> path = InstanceIdentifier.builder(QosalertConfig.class).build();
QosalertConfig qosAlertConfig = new QosalertConfigBuilder().setQosDropPacketThreshold(dropPacketThreshold).setQosAlertEnabled(qosAlertEnabled).setQosAlertPollInterval(alertPollInterval).build();
asyncWrite(LogicalDatastoreType.CONFIGURATION, path, qosAlertConfig, dataBroker, DEFAULT_FUTURE_CALLBACK);
}
Aggregations