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