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);
}
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());
}
Aggregations