final InstanceIdentifier<Node> nodeIId = getOvsdbConnectionInstance().getInstanceIdentifier();
final Optional<Node> ovsdbNode = SouthboundUtil.readNode(transaction, nodeIId);
if (ovsdbNode.isPresent()) {
- for (@SuppressWarnings("unused") OpenVSwitch openVSwitch : updatedOpenVSwitchRows.values()) {
- List<InstanceIdentifier<QosEntries>> result = new ArrayList<>();
- InstanceIdentifier<Node> ovsdbNodeIid =
- SouthboundMapper.createInstanceIdentifier(getOvsdbConnectionInstance().getNodeId());
- if (removedQosRows != null && !removedQosRows.isEmpty()) {
- for (UUID qosUuid : removedQosRows.keySet()) {
- QosEntriesKey qosKey = getQosEntriesKey(ovsdbNode.get(), qosUuid);
- if (qosKey != null) {
- InstanceIdentifier<QosEntries> iid = ovsdbNodeIid
- .augmentation(OvsdbNodeAugmentation.class)
- .child(QosEntries.class, qosKey);
- result.add(iid);
- }
+ List<InstanceIdentifier<QosEntries>> result = new ArrayList<>();
+ InstanceIdentifier<Node> ovsdbNodeIid =
+ SouthboundMapper.createInstanceIdentifier(getOvsdbConnectionInstance().getNodeId());
+ if (removedQosRows != null && !removedQosRows.isEmpty()) {
+ for (UUID qosUuid : removedQosRows.keySet()) {
+ QosEntriesKey qosKey = getQosEntriesKey(ovsdbNode.get(), qosUuid);
+ if (qosKey != null) {
+ InstanceIdentifier<QosEntries> iid = ovsdbNodeIid
+ .augmentation(OvsdbNodeAugmentation.class)
+ .child(QosEntries.class, qosKey);
+ result.add(iid);
}
}
- deleteQos(transaction, result);
}
+ deleteQos(transaction, result);
}
}
final InstanceIdentifier<Node> nodeIId = getOvsdbConnectionInstance().getInstanceIdentifier();
final Optional<Node> ovsdbNode = SouthboundUtil.readNode(transaction, nodeIId);
if (ovsdbNode.isPresent()) {
- for (@SuppressWarnings("unused") OpenVSwitch openVSwitch : updatedOpenVSwitchRows.values()) {
- List<InstanceIdentifier<Queues>> result = new ArrayList<>();
- InstanceIdentifier<Node> ovsdbNodeIid =
- SouthboundMapper.createInstanceIdentifier(getOvsdbConnectionInstance().getNodeId());
- if (removedQueueRows != null && !removedQueueRows.isEmpty()) {
- for (UUID queueUuid : removedQueueRows.keySet()) {
- QueuesKey queueKey = getQueueKey(ovsdbNode.get(), queueUuid);
- if (queueKey != null) {
- InstanceIdentifier<Queues> iid = ovsdbNodeIid
- .augmentation(OvsdbNodeAugmentation.class)
- .child(Queues.class, queueKey);
- result.add(iid);
- }
+ List<InstanceIdentifier<Queues>> result = new ArrayList<>();
+ InstanceIdentifier<Node> ovsdbNodeIid =
+ SouthboundMapper.createInstanceIdentifier(getOvsdbConnectionInstance().getNodeId());
+ if (removedQueueRows != null && !removedQueueRows.isEmpty()) {
+ for (UUID queueUuid : removedQueueRows.keySet()) {
+ QueuesKey queueKey = getQueueKey(ovsdbNode.get(), queueUuid);
+ if (queueKey != null) {
+ InstanceIdentifier<Queues> iid = ovsdbNodeIid
+ .augmentation(OvsdbNodeAugmentation.class)
+ .child(Queues.class, queueKey);
+ result.add(iid);
}
}
- deleteQueue(transaction, result);
}
+ deleteQueue(transaction, result);
}
}