*/
package org.opendaylight.genius.mdsalutil.actions;
-import java.math.BigInteger;
import org.opendaylight.genius.mdsalutil.ActionInfo;
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action;
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nodes.node.table.flow.instructions.instruction.instruction.apply.actions._case.apply.actions.action.action.NxActionRegLoadNodesNodeTableFlowApplyActionsCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.reg.load.grouping.NxRegLoadBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nx.action.reg.load.grouping.nx.reg.load.DstBuilder;
+import org.opendaylight.yangtools.yang.common.Empty;
+import org.opendaylight.yangtools.yang.common.Uint16;
+import org.opendaylight.yangtools.yang.common.Uint64;
/**
* NX load in port action.
*/
public class ActionNxLoadInPort extends ActionInfo {
- private static final long serialVersionUID = 1L;
- private final BigInteger value;
+ private final Uint64 value;
- public ActionNxLoadInPort(BigInteger value) {
+ public ActionNxLoadInPort(Uint64 value) {
this(0, value);
}
- public ActionNxLoadInPort(int actionKey, BigInteger value) {
+ public ActionNxLoadInPort(int actionKey, Uint64 value) {
super(actionKey);
this.value = value;
}
.setAction(new NxActionRegLoadNodesNodeTableFlowApplyActionsCaseBuilder()
.setNxRegLoad(new NxRegLoadBuilder()
.setDst(new DstBuilder()
- .setDstChoice(new DstNxOfInPortCaseBuilder().setOfInPort(true).build())
- .setStart(0)
+ .setDstChoice(new DstNxOfInPortCaseBuilder().setOfInPort(Empty.getInstance()).build())
+ .setStart(Uint16.ZERO)
.setEnd(15)
.build())
.setValue(value)
.build())
.build())
- .setKey(new ActionKey(newActionKey))
+ .withKey(new ActionKey(newActionKey))
.build();
}
- public BigInteger getValue() {
+ public Uint64 getValue() {
return value;
}