org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow.getInstructions()方法的使用及代码示例

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

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

Flow.getInstructions介绍

暂无

代码示例

代码示例来源:origin: org.opendaylight.ovsdb/utils.mdsal-openflow

/**
 * Extracts the existing instructions (if any) from the flow.
 *
 * @param flow The flow.
 * @return The instructions in the flow (empty if none).
 */
public static List<Instruction> extractExistingInstructions(Flow flow) {
  if (flow != null) {
    Instructions ins = flow.getInstructions();
    if (ins != null) {
      return ins.getInstruction();
    }
  }
  return Collections.emptyList();
}

代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service

return false;
if (!Objects.equals(_instructions, other.getInstructions())) {
  return false;

代码示例来源:origin: org.opendaylight.alto.basic/alto-simple-ecs-impl

private short lookUpFlowTable(short tableId, MatchFields matchFields) {
  List<Flow> flows = indexTables.get(tableId).getFlow();
  sortFlowByPriority(flows);
  for (Flow flow : flows) {
    if (flowEntryMatcher.match(flow.getMatch(), matchFields)) {
      log.info("Priority: " + flow.getPriority());
      Instructions inss = flow.getInstructions();
      if (inss == null) {
        return tableId;
      }
      short nextTableId = lookUpInstructions(inss.getInstruction());
      return (nextTableId != -1) ? nextTableId : tableId;
    }
  }
  return tableId;
}

代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer

if (a.getInstructions() != null) {
  listA = a.getInstructions().getInstruction();
if (b.getInstructions() != null) {
  listB = b.getInstructions().getInstruction();

代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer

result = prime * result + ((flow.getFlowName() == null) ? 0 : flow.getFlowName().hashCode());
if (flow.getInstructions() != null
    && flow.getInstructions().getInstruction() != null
    && !flow.getInstructions().getInstruction().isEmpty()) {
  Set<Instruction> instructions = new HashSet<>(flow.getInstructions().getInstruction());
  result = prime * result + instructions.hashCode();

代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service

this._hardTimeout = base.getHardTimeout();
this._idleTimeout = base.getIdleTimeout();
this._instructions = base.getInstructions();
this._match = base.getMatch();
this._outGroup = base.getOutGroup();

相关文章