private List<TableFeatureProperties> getTableFeatureProperties(final NodeId nodeId, final Short tableId) { Node node = getDataObject(dataBroker.newReadOnlyTransaction(), InstanceIdentifier.create(Nodes.class).child(Node.class, new NodeKey(nodeId))); if (node == null) { return Collections.emptyList(); } FlowCapableNode flowCapableNode = node.getAugmentation(FlowCapableNode.class); List<TableFeatures> features = flowCapableNode.getTableFeatures(); if (features == null || features.isEmpty()) { return Collections.emptyList(); } return features.get(tableId).getTableProperties().getTableFeatureProperties(); }
return false; if (!Objects.equals(_tableFeatures, other.getTableFeatures())) { return false;
List<TableFeatures> tableList = flowNode.get().getTableFeatures() != null ? flowNode.get().getTableFeatures() : Collections.<TableFeatures>emptyList(); for (TableFeatures tableFeaturesItem : tableList) { TableFeaturesKey tableKey = tableFeaturesItem.getKey();
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(); }