use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionLearnGrouping in project openflowplugin by opendaylight.
the class LearnConvertor method convert.
@Override
public Action convert(final org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action nxActionArg) {
Preconditions.checkArgument(nxActionArg instanceof NxActionLearnGrouping);
NxActionLearnGrouping nxAction = (NxActionLearnGrouping) nxActionArg;
NxActionLearnBuilder nxActionLearnBuilder = new NxActionLearnBuilder();
LearnConvertorUtil.convertDown(nxAction, nxActionLearnBuilder);
ActionLearnBuilder actionLearnBuilder = new ActionLearnBuilder();
actionLearnBuilder.setNxActionLearn(nxActionLearnBuilder.build());
return ActionUtil.createAction(actionLearnBuilder.build());
}
Aggregations