• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java PopVlanActionCaseBuilder类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PopVlanActionCaseBuilder的典型用法代码示例。如果您正苦于以下问题:Java PopVlanActionCaseBuilder类的具体用法?Java PopVlanActionCaseBuilder怎么用?Java PopVlanActionCaseBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

PopVlanActionCaseBuilder类属于org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action包,在下文中一共展示了PopVlanActionCaseBuilder类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createPopVlanInstructions

点赞 3

import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PopVlanActionCaseBuilder; //导入依赖的package包/类
/**
 * Create Pop Vlan Instruction - this remove vlan header
 *
 * @param ib Map InstructionBuilder without any instructions
 * @return ib Map InstructionBuilder with instructions
 */
public static InstructionBuilder createPopVlanInstructions(InstructionBuilder ib) {

    List<Action> actionList = new ArrayList<>();
    ActionBuilder ab = new ActionBuilder();

    PopVlanActionBuilder popVlanActionBuilder = new PopVlanActionBuilder();
    ab.setAction(new PopVlanActionCaseBuilder().setPopVlanAction(popVlanActionBuilder.build()).build());
    ab.setOrder(0);
    actionList.add(ab.build());

    // Create an Apply Action
    ApplyActionsBuilder aab = new ApplyActionsBuilder();
    aab.setAction(actionList);

    // Wrap our Apply Action in an Instruction
    ib.setInstruction(new ApplyActionsCaseBuilder().setApplyActions(aab.build()).build());

    return ib;
}
 

开发者ID:opendaylight,
项目名称:faas,
代码行数:26,
代码来源:OfInstructionUtils.java

示例2: createPopVlanInstructions

点赞 3

import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PopVlanActionCaseBuilder; //导入依赖的package包/类
/**
 * Create Pop Vlan Instruction - this remove vlan header
 *
 * @param ib Map InstructionBuilder without any instructions
 * @return ib Map InstructionBuilder with instructions
 */
public static InstructionBuilder createPopVlanInstructions(InstructionBuilder ib) {

    List<Action> actionList = Lists.newArrayList();
    ActionBuilder ab = new ActionBuilder();

    PopVlanActionBuilder popVlanActionBuilder = new PopVlanActionBuilder();
    ab.setAction(new PopVlanActionCaseBuilder().setPopVlanAction(popVlanActionBuilder.build()).build());
    ab.setOrder(0);
    actionList.add(ab.build());

    // Create an Apply Action
    ApplyActionsBuilder aab = new ApplyActionsBuilder();
    aab.setAction(actionList);

    // Wrap our Apply Action in an Instruction
    ib.setInstruction(new ApplyActionsCaseBuilder().setApplyActions(aab.build()).build());

    return ib;
}
 

开发者ID:sdnhub,
项目名称:SDNHub_Opendaylight_Tutorial,
代码行数:26,
代码来源:InstructionUtils.java

示例3: popVlanAction

点赞 2

import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PopVlanActionCaseBuilder; //导入依赖的package包/类
public static Action popVlanAction() {
    return new PopVlanActionCaseBuilder().setPopVlanAction(new PopVlanActionBuilder().build()).build();
}
 

开发者ID:opendaylight,
项目名称:faas,
代码行数:4,
代码来源:OfActionUtils.java

示例4: popVlanAction

点赞 2

import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PopVlanActionCaseBuilder; //导入依赖的package包/类
public static Action popVlanAction() {
    return new PopVlanActionCaseBuilder()
        .setPopVlanAction(new PopVlanActionBuilder()
                .build())
        .build();
}
 

开发者ID:sdnhub,
项目名称:SDNHub_Opendaylight_Tutorial,
代码行数:7,
代码来源:ActionUtils.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)