本文整理汇总了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder.build方法的典型用法代码示例。如果您正苦于以下问题:Java ActionBuilder.build方法的具体用法?Java ActionBuilder.build怎么用?Java ActionBuilder.build使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder
的用法示例。
在下文中一共展示了ActionBuilder.build方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSetFieldDestinationMacAddress
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
/**
*
* @param order An integer representing the order of the Action
* within the table.
* @param macAddress Destination MAC address
* @return Action with an order
*/
public static Action createSetFieldDestinationMacAddress(int order, String macAddress) {
Action action;
ActionBuilder ab = new ActionBuilder();
MacAddress address = MacAddress.getDefaultInstance(macAddress);
EthernetDestination destination = new EthernetDestinationBuilder().setAddress(address).build();
EthernetMatchBuilder builder = new EthernetMatchBuilder();
builder.setEthernetDestination(destination);
EthernetMatch ethernetMatch = builder.build();
SetFieldBuilder setFieldBuilder = new SetFieldBuilder();
setFieldBuilder.setEthernetMatch(ethernetMatch);
SetField setField = setFieldBuilder.build();
org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action acction = new SetFieldCaseBuilder().
setSetField(setField).build();
ab.setOrder(order).setKey(new ActionKey(order)).setAction(acction);
action = ab.build();
return action;
}
示例2: createActionNxLoadTunIpv4Dst
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadTunIpv4Dst(long value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxTunIpv4DstCaseBuilder().setNxTunIpv4Dst(Boolean.TRUE).build(),
BigInteger.valueOf(value), 31, false));
return ab.build();
}
示例3: createActionNxLoadTunId
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadTunId(long value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxTunIdCaseBuilder().setNxTunId(Boolean.TRUE).build(),
BigInteger.valueOf(value), 31, false));
return ab.build();
}
示例4: createActionNxLoadNshMdtype
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadNshMdtype(short value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxNshMdtypeCaseBuilder().setNxNshMdtype(Boolean.TRUE).build(),
BigInteger.valueOf(value), 7, false));
return ab.build();
}
示例5: createActionNxLoadNp
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadNp(short value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxNshNpCaseBuilder().setNxNshNp(Boolean.TRUE).build(),
BigInteger.valueOf(value), 7, false));
return ab.build();
}
示例6: createActionNxLoadNsp
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadNsp(int value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxNspCaseBuilder().setNxNspDst(Boolean.TRUE).build(),
BigInteger.valueOf(value), 23, false));
return ab.build();
}
示例7: createActionNxLoadNsi
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadNsi(short value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxNsiCaseBuilder().setNxNsiDst(Boolean.TRUE).build(),
BigInteger.valueOf(value), 7, false));
return ab.build();
}
示例8: createActionNxLoadNshc1
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadNshc1(long value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxNshc1CaseBuilder().setNxNshc1Dst(Boolean.TRUE).build(),
BigInteger.valueOf(value), 31, false));
return ab.build();
}
示例9: createActionNxLoadNshc2
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxLoadNshc2(long value, int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxLoadRegAction(new DstNxNshc2CaseBuilder().setNxNshc2Dst(Boolean.TRUE).build(),
BigInteger.valueOf(value), 31, false));
return ab.build();
}
示例10: createActionNxPushNsh
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxPushNsh(int order) {
NxPushNshBuilder builder = new NxPushNshBuilder();
NxPushNsh nxPushNsh = builder.build();
ActionBuilder ab = createActionBuilder(order);
ab.setAction(new NxActionPushNshNodesNodeTableFlowApplyActionsCaseBuilder().setNxPushNsh(nxPushNsh).build());
return ab.build();
}
示例11: createActionNxPopNsh
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxPopNsh(int order) {
NxPopNshBuilder builder = new NxPopNshBuilder();
NxPopNsh nxPopNsh = builder.build();
ActionBuilder ab = createActionBuilder(order);
ab.setAction(new NxActionPopNshNodesNodeTableFlowApplyActionsCaseBuilder().setNxPopNsh(nxPopNsh).build());
return ab.build();
}
示例12: createActionNxMoveTunIdToNsc2Register
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxMoveTunIdToNsc2Register(int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxMoveRegAction(new SrcNxTunIdCaseBuilder().setNxTunId(Boolean.TRUE).build(),
new DstNxNshc2CaseBuilder().setNxNshc2Dst(Boolean.TRUE).build(), 31, false));
return ab.build();
}
示例13: createActionNxMoveReg0ToNsc1Register
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxMoveReg0ToNsc1Register(int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxMoveRegAction(new SrcNxRegCaseBuilder().setNxReg(NxmNxReg0.class).build(),
new DstNxNshc1CaseBuilder().setNxNshc1Dst(Boolean.TRUE).build(), 31, false));
return ab.build();
}
示例14: createActionNxMoveReg6ToNsc4Register
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxMoveReg6ToNsc4Register(int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxMoveRegAction(new SrcNxRegCaseBuilder().setNxReg(NxmNxReg6.class).build(),
new DstNxNshc4CaseBuilder().setNxNshc4Dst(Boolean.TRUE).build(), 31, false));
return ab.build();
}
示例15: createActionNxMoveNsc4ToReg6Register
import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder; //导入方法依赖的package包/类
public static Action createActionNxMoveNsc4ToReg6Register(int order) {
ActionBuilder ab = createActionBuilder(order);
ab.setAction(nxMoveRegAction(new SrcNxNshc4CaseBuilder().setNxNshc4Dst(Boolean.TRUE).build(),
new DstNxRegCaseBuilder().setNxReg(NxmNxReg6.class).build(), 31, false));
return ab.build();
}