use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry in project openflowplugin by opendaylight.
the class OxmIpDscpSerializer method serialize.
@Override
public void serialize(MatchEntry entry, ByteBuf outBuffer) {
super.serialize(entry, outBuffer);
IpDscpCase entryValue = (IpDscpCase) entry.getMatchEntryValue();
outBuffer.writeByte(entryValue.getIpDscp().getDscp().getValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry in project openflowplugin by opendaylight.
the class OxmIpProtoSerializer method serialize.
@Override
public void serialize(MatchEntry entry, ByteBuf outBuffer) {
super.serialize(entry, outBuffer);
IpProtoCase entryValue = (IpProtoCase) entry.getMatchEntryValue();
outBuffer.writeByte(entryValue.getIpProto().getProtocolNumber());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry in project openflowplugin by opendaylight.
the class OxmIpv4SrcSerializer method serialize.
@Override
public void serialize(final MatchEntry entry, final ByteBuf outBuffer) {
super.serialize(entry, outBuffer);
Ipv4SrcCase entryValue = (Ipv4SrcCase) entry.getMatchEntryValue();
writeIpv4Address(entryValue.getIpv4Src().getIpv4Address(), outBuffer);
if (entry.isHasMask()) {
writeMask(entryValue.getIpv4Src().getMask(), outBuffer, EncodeConstants.GROUPS_IN_IPV4_ADDRESS);
}
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry in project openflowplugin by opendaylight.
the class OxmIpv6NdSllSerializer method serialize.
@Override
public void serialize(MatchEntry entry, ByteBuf outBuffer) {
super.serialize(entry, outBuffer);
Ipv6NdSllCase entryValue = (Ipv6NdSllCase) entry.getMatchEntryValue();
writeMacAddress(entryValue.getIpv6NdSll().getMacAddress(), outBuffer);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry in project openflowplugin by opendaylight.
the class OxmIpv6NdTllSerializer method serialize.
@Override
public void serialize(MatchEntry entry, ByteBuf outBuffer) {
super.serialize(entry, outBuffer);
Ipv6NdTllCase entryValue = (Ipv6NdTllCase) entry.getMatchEntryValue();
writeMacAddress(entryValue.getIpv6NdTll().getMacAddress(), outBuffer);
}
Aggregations