private List<Table> getTableList(Node node) { FlowCapableNode flowCapableNode = node.getAugmentation(FlowCapableNode.class); List<Table> tableList = flowCapableNode.getTable(); Collections.sort(tableList, new Comparator<Table>() { @Override public int compare(Table o1, Table o2) { return o1.getId().compareTo(o2.getId()); } }); return tableList; }
return false; if (!Objects.equals(_table, other.getTable())) { return false;
private void prepare(FlowCapableNode node) { applyActions.clear(); pipelineActions.clear(); meterId = null; indexTables.clear(); indexTables = indexByTableId(node.getTable()); indexedGroups = indexByGroupId(node.getGroup()); }
public NodeUpdateState(final InstanceIdentifier<FlowCapableNode> fNodeIdent, final FlowCapableNode flowCapableNode) { nodeIdentifier = fNodeIdent; final List<Table> tableList = flowCapableNode.getTable(); if(tableList != null) { for (final Table table : tableList) { final TableKey tableKey = table.getKey(); tables.put(tableKey, new TableFlowUpdateState(nodeIdentifier.child(Table.class,tableKey),table)); } } }
public FlowCapableNodeBuilder(FlowCapableNode base) { this._description = base.getDescription(); this._group = base.getGroup(); this._hardware = base.getHardware(); this._ipAddress = base.getIpAddress(); this._manufacturer = base.getManufacturer(); this._meter = base.getMeter(); this._portNumber = base.getPortNumber(); this._serialNumber = base.getSerialNumber(); this._software = base.getSoftware(); this._staleGroup = base.getStaleGroup(); this._staleMeter = base.getStaleMeter(); this._supportedActions = base.getSupportedActions(); this._supportedInstructions = base.getSupportedInstructions(); this._supportedMatchTypes = base.getSupportedMatchTypes(); this._switchFeatures = base.getSwitchFeatures(); this._table = base.getTable(); this._tableFeatures = base.getTableFeatures(); }
public NodeUpdateState(final InstanceIdentifier<FlowCapableNode> fNodeIdent, final FlowCapableNode flowCapableNode) { nodeIdentifier = fNodeIdent; final List<Table> tableList = flowCapableNode.getTable(); if(tableList != null) { for (final Table table : tableList) { final TableKey tableKey = table.getKey(); tables.put(tableKey, new TableFlowUpdateState(nodeIdentifier.child(Table.class,tableKey),table)); } } }
readOnlyTransaction, nodeRef); if (node != null) { List<Table> tables = node.getTable(); for (Iterator<Table> iterator2 = tables.iterator(); iterator2.hasNext();) { tableCount++;
readOnlyTransaction, nodeRef); if (node != null) { List<Table> tables = node.getTable(); for (Iterator<Table> iterator2 = tables.iterator(); iterator2.hasNext();) { aggregateFlowCount++;
@Override public List<NodeTableStatistics> readAllNodeTable(final Node node, final boolean cached) { final NodeRef nodeRef = NodeMapping.toNodeRef(node); final ArrayList<NodeTableStatistics> ret = new ArrayList<>(); final FlowCapableNode dsFlowCapableNode = this.readOperFlowCapableNode(nodeRef); if (dsFlowCapableNode != null) { for (final Table table : dsFlowCapableNode.getTable()) { final FlowTableStatisticsData tableStats = table.getAugmentation(FlowTableStatisticsData.class); if (tableStats != null) { try { ret.add(toNodeTableStatistics(tableStats.getFlowTableStatistics(), table.getId(), node)); } catch (ConstructionException e) { LOG.warn("Failed to instantiate table statistics for node {} table {}, ignoring it", node, table.getId(), e); } } } } //TODO: Refer TODO (main) getFlowTableStatisticsService().getFlowTablesStatistics(new GetFlowTablesStatisticsInputBuilder().setNode(nodeRef).build()); return ret; }
List<Table> tables = node.getTable(); for (Iterator<Table> iterator2 = tables.iterator(); iterator2.hasNext();) { TableKey tableKey = iterator2.next().getKey();
List<Table> flowTables = flowCapableNode.getTable(); if (flowTables != null) { for (Table table : flowTables) {
List<Table> tables = fcnode.getTable(); if (tables != null) { for (Table t : tables) {