use of org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.TcpDst in project openflowplugin by opendaylight.
the class OfToSalTcpDstCase method process.
@Override
public Optional<MatchBuilder> process(@Nonnull TcpDstCase source, MatchResponseConvertorData data, ConvertorExecutor convertorExecutor) {
final MatchBuilder matchBuilder = data.getMatchBuilder();
final TcpMatchBuilder tcpMatchBuilder = data.getTcpMatchBuilder();
TcpDst tcpDst = source.getTcpDst();
PortNumber portNumber = tcpDst.getPort();
if (portNumber != null) {
tcpMatchBuilder.setTcpDestinationPort(portNumber);
matchBuilder.setLayer4Match(tcpMatchBuilder.build());
}
return Optional.of(matchBuilder);
}
Aggregations