Search in sources :

Example 1 with NxActionLearnGrouping

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());
}
Also used : NxActionLearnBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.learn.grouping.NxActionLearnBuilder) ActionLearnBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.action.container.action.choice.ActionLearnBuilder) NxActionLearnGrouping(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionLearnGrouping) NxActionLearnBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.learn.grouping.NxActionLearnBuilder)

Aggregations

ActionLearnBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.action.container.action.choice.ActionLearnBuilder)1 NxActionLearnBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.learn.grouping.NxActionLearnBuilder)1 NxActionLearnGrouping (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.NxActionLearnGrouping)1