Reduce use of powermockito
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / transactions / md / OvsdbQosRemovedCommand.java
index d4cd67ae6213a1cece9abda04924506406973e35..95e8389f362fb852c0b864404414dd7a8de38250 100644 (file)
@@ -33,7 +33,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class OvsdbQosRemovedCommand extends AbstractTransactionCommand {
-    private static final Logger LOG = LoggerFactory.getLogger(OvsdbQueueUpdateCommand.class);
+    private static final Logger LOG = LoggerFactory.getLogger(OvsdbQosRemovedCommand.class);
 
     private Map<UUID, Qos> removedQosRows;
 
@@ -69,7 +69,7 @@ public class OvsdbQosRemovedCommand extends AbstractTransactionCommand {
     }
 
     private QosEntriesKey getQosEntriesKey(Node node, UUID qosUuid) {
-        List<QosEntries> qosList = node.getAugmentation(OvsdbNodeAugmentation.class).getQosEntries();
+        List<QosEntries> qosList = node.augmentation(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;
@@ -79,7 +79,7 @@ public class OvsdbQosRemovedCommand extends AbstractTransactionCommand {
         while (itr.hasNext()) {
             QosEntries qos = itr.next();
             if (qos.getQosUuid().equals(quUuid)) {
-                return qos.getKey();
+                return qos.key();
             }
         }
         LOG.debug("Deleted Queue {} not found in Ovsdb Node {}", qosUuid.toString(), node);