use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.learn.grouping.NxActionLearn in project openflowplugin by opendaylight.
the class LearnConvertor method convert.
@Override
public org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action convert(final Action input, final ActionPath path) {
NxActionLearn action = ((ActionLearn) input.getActionChoice()).getNxActionLearn();
NxLearnBuilder builder = new NxLearnBuilder();
LearnConvertorUtil.convertUp(action, builder);
return resolveAction(builder.build(), path);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.learn.grouping.NxActionLearn in project openflowplugin by opendaylight.
the class LearnConvertorUtil method getFlowMods.
private static List<FlowMods> getFlowMods(NxActionLearn action) {
if (action.getFlowMods() == null) {
return null;
}
List<FlowMods> flowMods = new ArrayList<>();
for (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.ofj.nx.action.learn.grouping.nx.action.learn.FlowMods flowMod : action.getFlowMods()) {
FlowModsBuilder flowModBuilder = new FlowModsBuilder();
FlowModSpec flowModSpec = buildExtFlowModSpec(flowMod.getFlowModSpec());
flowModBuilder.setFlowModSpec(flowModSpec);
flowMods.add(flowModBuilder.build());
}
return flowMods;
}
Aggregations