Search in sources :

Example 1 with NxActionResubmitGrouping

use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionResubmitGrouping in project openflowplugin by opendaylight.

the class ResubmitConvertor method convert.

@Override
public Action convert(final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action nxActionArg) {
    Preconditions.checkArgument(nxActionArg instanceof NxActionResubmitGrouping);
    NxActionResubmitGrouping nxAction = (NxActionResubmitGrouping) nxActionArg;
    ActionResubmitBuilder builder = new ActionResubmitBuilder();
    NxActionResubmitBuilder nxActionResubmitBuilder = new NxActionResubmitBuilder();
    nxActionResubmitBuilder.setInPort(nxAction.getNxResubmit().getInPort());
    nxActionResubmitBuilder.setTable(nxAction.getNxResubmit().getTable());
    builder.setNxActionResubmit(nxActionResubmitBuilder.build());
    return ActionUtil.createAction(builder.build());
}
Also used : NxActionResubmitBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.resubmit.grouping.NxActionResubmitBuilder) NxActionResubmitGrouping(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionResubmitGrouping) ActionResubmitBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.action.container.action.choice.ActionResubmitBuilder) NxActionResubmitBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.resubmit.grouping.NxActionResubmitBuilder)

Aggregations

ActionResubmitBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.action.container.action.choice.ActionResubmitBuilder)1 NxActionResubmitBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.resubmit.grouping.NxActionResubmitBuilder)1 NxActionResubmitGrouping (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionResubmitGrouping)1