Search in sources :

Example 1 with QosalertConfigBuilder

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);
}
Also used : QosalertConfig(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfig) QosalertConfigBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfigBuilder)

Aggregations

QosalertConfig (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfig)1 QosalertConfigBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.qosalert.config.rev170301.QosalertConfigBuilder)1