Search in sources :

Example 1 with CtMarkCaseValue

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.CtMarkCaseValue in project openflowplugin by opendaylight.

the class CtMarkConvertor method convert.

/*
     * (non-Javadoc)
     *
     * @see
     * org.opendaylight.openflowplugin.extension.api.ConvertorFromOFJava#convert
     * (org.opendaylight.yangtools.yang.binding.DataContainer,
     * org.opendaylight.openflowplugin.extension.api.path.AugmentationPath)
     */
@Override
public ExtensionAugment<? extends Augmentation<Extension>> convert(MatchEntry input, MatchPath path) {
    CtMarkCaseValue ctMarkCaseValue = ((CtMarkCaseValue) input.getMatchEntryValue());
    NxmNxCtMarkBuilder ctMarkBuilder = new NxmNxCtMarkBuilder();
    ctMarkBuilder.setCtMark(ctMarkCaseValue.getCtMarkValues().getCtMark());
    ctMarkBuilder.setMask(ctMarkCaseValue.getCtMarkValues().getMask());
    return resolveAugmentation(ctMarkBuilder.build(), path, NxmNxCtMarkKey.class);
}
Also used : CtMarkCaseValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.CtMarkCaseValue) NxmNxCtMarkBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.ct.mark.grouping.NxmNxCtMarkBuilder)

Example 2 with CtMarkCaseValue

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.CtMarkCaseValue in project openflowplugin by opendaylight.

the class CtMarkCodec method serialize.

@Override
public void serialize(MatchEntry input, ByteBuf outBuffer) {
    serializeHeader(input, outBuffer);
    CtMarkCaseValue ctMarkCase = (CtMarkCaseValue) input.getMatchEntryValue();
    outBuffer.writeInt(ctMarkCase.getCtMarkValues().getCtMark().intValue());
    outBuffer.writeInt(ctMarkCase.getCtMarkValues().getMask().intValue());
}
Also used : CtMarkCaseValue(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.CtMarkCaseValue)

Aggregations

CtMarkCaseValue (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.CtMarkCaseValue)2 NxmNxCtMarkBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.ct.mark.grouping.NxmNxCtMarkBuilder)1