org.opendaylight.controller.sal.flowprogrammer.Flow.setActions()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.opendaylight.controller.sal.flowprogrammer.Flow.setActions()方法的一些代码示例,展示了Flow.setActions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.setActions()方法的具体详情如下:
包路径:org.opendaylight.controller.sal.flowprogrammer.Flow
类名称:Flow
方法名:setActions

Flow.setActions介绍

[英]Set the actions list for this flow If a list is already present, it will be replaced with the passed one. During addition, only the valid actions will be added It is a no op if the passed actions is null An empty actions is a vlaid input
[中]设置此流的操作列表如果列表已存在,则将替换为已传递的列表。在添加过程中,只添加有效的操作。如果传递的操作为null,则为no op。空操作为vlaid输入

代码示例

代码示例来源:origin: org.opendaylight.affinity/flatl2

f.setActions(actions);

代码示例来源:origin: org.opendaylight.controller/protocol_plugins.stub

List<Action> actions = new ArrayList<Action>();
actions.add(a);
flow.setActions(actions);
flow.setPriority(priority++);
flow.setIdleTimeout((short) 1000);

代码示例来源:origin: org.opendaylight.openflowplugin.legacy/sal-compatibility

public static Flow toFlow(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.Flow source, Node node) {
  final Flow target = new Flow();
  genericFlowToAdFlow(source, target);
  target.setMatch(toMatch(source.getMatch()));
  List<Action> actions = getAction(source);
  if (actions != null) {
    target.setActions(actionFrom(actions, node));
  }
  return target;
}

相关文章