Search in sources :

Example 6 with RateQueuePropertyBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.RateQueuePropertyBuilder in project openflowplugin by opendaylight.

the class OF10QueueGetConfigReplyMessageFactoryTest method createPropertiesList.

private static List<QueueProperty> createPropertiesList() {
    final List<QueueProperty> propertiesList = new ArrayList<>();
    QueuePropertyBuilder pb = new QueuePropertyBuilder();
    pb.setProperty(QueueProperties.forValue(1));
    RateQueuePropertyBuilder rateBuilder = new RateQueuePropertyBuilder();
    rateBuilder.setRate(5);
    pb.addAugmentation(RateQueueProperty.class, rateBuilder.build());
    propertiesList.add(pb.build());
    return propertiesList;
}
Also used : RateQueuePropertyBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.RateQueuePropertyBuilder) ArrayList(java.util.ArrayList) RateQueuePropertyBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.RateQueuePropertyBuilder) QueuePropertyBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.property.header.QueuePropertyBuilder) QueueProperty(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.property.header.QueueProperty) RateQueueProperty(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.RateQueueProperty)

Aggregations

ArrayList (java.util.ArrayList)6 RateQueueProperty (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.RateQueueProperty)6 RateQueuePropertyBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.RateQueuePropertyBuilder)6 QueueProperty (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.property.header.QueueProperty)6 QueuePropertyBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.property.header.QueuePropertyBuilder)6 QueueProperties (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.QueueProperties)2 OFDeserializer (org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer)1