use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.sctp.src._case.SctpSrc in project openflowplugin by opendaylight.
the class OfToSalSctpSrcCase method process.
@Override
public Optional<MatchBuilder> process(@Nonnull SctpSrcCase source, MatchResponseConvertorData data, ConvertorExecutor convertorExecutor) {
final MatchBuilder matchBuilder = data.getMatchBuilder();
final SctpMatchBuilder sctpMatchBuilder = data.getSctpMatchBuilder();
SctpSrc sctpSrc = source.getSctpSrc();
PortNumber portNumber = sctpSrc.getPort();
if (portNumber != null) {
sctpMatchBuilder.setSctpSourcePort(portNumber);
matchBuilder.setLayer4Match(sctpMatchBuilder.build());
}
return Optional.of(matchBuilder);
}
Aggregations