Search in sources :

Example 1 with MeterRemovedBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterRemovedBuilder in project openflowplugin by opendaylight.

the class MeterNotificationSupplierImpl method deleteNotification.

@Override
public MeterRemoved deleteNotification(final InstanceIdentifier<Meter> path) {
    Preconditions.checkArgument(path != null);
    final MeterRemovedBuilder builder = new MeterRemovedBuilder();
    builder.setMeterId(path.firstKeyOf(Meter.class, MeterKey.class).getMeterId());
    builder.setMeterRef(new MeterRef(path));
    builder.setNode(createNodeRef(path));
    return builder.build();
}
Also used : MeterRemovedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterRemovedBuilder) MeterRef(org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.MeterRef)

Aggregations

MeterRemovedBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.MeterRemovedBuilder)1 MeterRef (org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.MeterRef)1