use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionConntrackGrouping in project openflowplugin by opendaylight.
the class ConntrackConvertor method convert.
@Override
public Action convert(final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action nxActionArg) {
Preconditions.checkArgument(nxActionArg instanceof NxActionConntrackGrouping);
NxActionConntrackGrouping nxAction = (NxActionConntrackGrouping) nxActionArg;
NxActionConntrackBuilder nxActionConntrackBuilder = new NxActionConntrackBuilder();
nxActionConntrackBuilder.setFlags(nxAction.getNxConntrack().getFlags());
nxActionConntrackBuilder.setZoneSrc(nxAction.getNxConntrack().getZoneSrc());
nxActionConntrackBuilder.setRecircTable(nxAction.getNxConntrack().getRecircTable());
nxActionConntrackBuilder.setConntrackZone(nxAction.getNxConntrack().getConntrackZone());
nxActionConntrackBuilder.setCtActions(getCtAction(nxAction.getNxConntrack()));
ActionConntrackBuilder actionConntrackBuilder = new ActionConntrackBuilder();
actionConntrackBuilder.setNxActionConntrack(nxActionConntrackBuilder.build());
return ActionUtil.createAction(actionConntrackBuilder.build());
}
Aggregations