private List<OFInstruction> getInstructions(OFFlowMod entry) { switch (entry.getVersion()) { case OF_10: return Lists.newArrayList(OFFactoryVer13.INSTANCE.instructions() .applyActions( entry.getActions())); case OF_11: case OF_12: case OF_13: case OF_14: case OF_15: return entry.getInstructions(); default: log.warn("Unknown OF version {}", entry.getVersion()); } return Lists.newLinkedList(); }
private List<OFInstruction> getInstructions(OFFlowStatsEntry entry) { switch (entry.getVersion()) { case OF_10: return Lists.newArrayList( OFFactoryVer13.INSTANCE.instructions().applyActions(entry.getActions())); case OF_11: case OF_12: case OF_13: case OF_14: case OF_15: return entry.getInstructions(); default: log.warn("Unknown OF version {}", entry.getVersion()); } return Lists.newLinkedList(); }
private List<OFInstruction> getInstructions(OFFlowMod entry) { switch (entry.getVersion()) { case OF_10: return Lists.newArrayList(OFFactoryVer13.INSTANCE.instructions() .applyActions( entry.getActions())); case OF_11: case OF_12: case OF_13: return entry.getInstructions(); default: log.warn("Unknown OF version {}", entry.getVersion()); } return Lists.newLinkedList(); }
private List<OFInstruction> getInstructions(OFFlowStatsEntry entry) { switch (entry.getVersion()) { case OF_10: return Lists.newArrayList( OFFactoryVer13.INSTANCE.instructions().applyActions(entry.getActions())); case OF_11: case OF_12: case OF_13: return entry.getInstructions(); default: log.warn("Unknown OF version {}", entry.getVersion()); } return Lists.newLinkedList(); }