private Uuid getQosEntryUuid(List<QosEntries> operQosEntries, Uri qosId) { if (operQosEntries != null && !operQosEntries.isEmpty()) { for (QosEntries qosEntry : operQosEntries) { if (qosEntry.getQosId().equals(qosId)) { return qosEntry.getQosUuid(); } } } return null; } }
private Uuid getQosEntryUuid(List<QosEntries> operQosEntries, Uri qosId) { if (operQosEntries != null && !operQosEntries.isEmpty()) { for (QosEntries qosEntry : operQosEntries) { if (qosEntry.getQosId().equals(qosId)) { return qosEntry.getQosUuid(); } } } return null; }
private static Uuid getQosUuid(DataBroker dataBroker, Uni uni) { Uuid qosUuid = null; final Optional<Node> optionalNode = UniUtils.findUniNode(dataBroker, uni.getIpAddress()); if (optionalNode.isPresent()) { final UniAugmentation uniAugmentation = optionalNode.get() .getAugmentation(UniAugmentation.class); final Optional<Node> ovsdbNode = findOvsdbNode(dataBroker, uniAugmentation); if (ovsdbNode.isPresent()) { final List<QosEntries> qosEntries = ovsdbNode.get() .getAugmentation(OvsdbNodeAugmentation.class) .getQosEntries(); for (final QosEntries qosEntry : qosEntries) { qosUuid = qosEntry.getQosUuid(); } } } return qosUuid; }
private QosEntriesKey getQosEntriesKey(Node node, UUID qosUuid) { List<QosEntries> qosList = node.getAugmentation(OvsdbNodeAugmentation.class).getQosEntries(); if (qosList == null || qosList.isEmpty()) { LOG.debug("Deleting Qos {}, Ovsdb Node {} does not have a Qos list.", qosUuid.toString(), node); return null; } Iterator<QosEntries> itr = qosList.iterator(); Uuid quUuid = new Uuid(qosUuid.toString()); while (itr.hasNext()) { QosEntries qos = itr.next(); if (qos.getQosUuid().equals(quUuid)) { return qos.getKey(); } } LOG.debug("Deleted Queue {} not found in Ovsdb Node {}", qosUuid.toString(), node); return null; }
return false; if (!Objects.equals(_qosUuid, other.getQosUuid())) { return false;
public QosEntriesBuilder(QosEntries base) { if (base.getKey() == null) { this._key = new QosEntriesKey( base.getQosId() ); this._qosId = base.getQosId(); } else { this._key = base.getKey(); this._qosId = _key.getQosId(); } this._qosExternalIds = base.getQosExternalIds(); this._qosOtherConfig = base.getQosOtherConfig(); this._qosType = base.getQosType(); this._qosUuid = base.getQosUuid(); this._queueList = base.getQueueList(); if (base instanceof QosEntriesImpl) { QosEntriesImpl impl = (QosEntriesImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.QosEntries> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.QosEntries>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
for (QosEntries qosEntry : operNode.getQosEntries()) { if (qosEntry.getQosId().equals(qosId)) { uuidSet.add(new UUID(qosEntry.getQosUuid().getValue()));
if (qosEntry.getQosUuid().equals(new Uuid(qosUuid.toString()))) { return SouthboundMapper.createInstanceIdentifier(nodeId) .augmentation(OvsdbNodeAugmentation.class)