use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReply in project openflowplugin by opendaylight.
the class MultipartReplyTranslatorUtilTest method translateMeterConfig.
@Test
public void translateMeterConfig() {
final MultipartReply multipartReply = buildReply(MultipartType.OFPMPMETERCONFIG, new MultipartReplyMeterConfigCaseBuilder().setMultipartReplyMeterConfig(new MultipartReplyMeterConfigBuilder().build()).build());
dummyAssertReply(multipartReply);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReply in project openflowplugin by opendaylight.
the class MultipartReplyTranslatorUtilTest method translateMeterFeatures.
@Test
public void translateMeterFeatures() {
final MultipartReply multipartReply = buildReply(MultipartType.OFPMPMETERFEATURES, new MultipartReplyMeterFeaturesCaseBuilder().setMultipartReplyMeterFeatures(new MultipartReplyMeterFeaturesBuilder().setMaxMeter(10L).setCapabilities(new MeterFlags(true, false, false, false)).setBandTypes(new MeterBandTypeBitmap(true, false)).build()).build());
dummyAssertReply(multipartReply);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReply in project openflowplugin by opendaylight.
the class MultipartReplyTranslatorUtilTest method translateDesc.
@Test
public void translateDesc() {
final MultipartReply multipartReply = buildReply(MultipartType.OFPMPDESC, new MultipartReplyDescCaseBuilder().setMultipartReplyDesc(new MultipartReplyDescBuilder().build()).build());
dummyAssertReply(multipartReply);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReply in project openflowplugin by opendaylight.
the class MultipartReplyTranslatorUtilTest method translateGroup.
@Test
public void translateGroup() {
final MultipartReply multipartReply = buildReply(MultipartType.OFPMPGROUP, new MultipartReplyGroupCaseBuilder().setMultipartReplyGroup(new MultipartReplyGroupBuilder().build()).build());
dummyAssertReply(multipartReply);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReply in project openflowplugin by opendaylight.
the class MultipartReplyTranslatorUtilTest method translateQueue.
@Test
public void translateQueue() {
final MultipartReply multipartReply = buildReply(MultipartType.OFPMPQUEUE, new MultipartReplyQueueCaseBuilder().setMultipartReplyQueue(new MultipartReplyQueueBuilder().setQueueStats(Collections.singletonList(new QueueStatsBuilder().setTxErrors(BigInteger.ONE).setTxBytes(BigInteger.ONE).setTxPackets(BigInteger.ONE).setDurationNsec(10L).setDurationSec(10L).setQueueId(10L).build())).build()).build());
dummyAssertReply(multipartReply);
}
Aggregations