bug 6579 removed boilerplate code
[ovsdb.git] / hwvtepsouthbound / hwvtepsouthbound-impl / src / main / java / org / opendaylight / ovsdb / hwvtepsouthbound / transact / PhysicalPortRemoveCommand.java
index 38cfae9eca60a1e30e8ac402074a28db273c1b4e..dbadaeb02f99c57f826cdf0c995d6f1f659ac499 100644 (file)
@@ -45,8 +45,9 @@ public class PhysicalPortRemoveCommand extends AbstractTransactCommand {
 
     @Override
     public void execute(TransactionBuilder transaction) {
+        //TODO reuse from base class instead of extractRemovedPorts
         Map<InstanceIdentifier<Node>, List<HwvtepPhysicalPortAugmentation>> removeds =
-                extractRemoved(getChanges(),HwvtepPhysicalPortAugmentation.class);
+                extractRemovedPorts(getChanges(), HwvtepPhysicalPortAugmentation.class);
         if (!removeds.isEmpty()) {
             for (Entry<InstanceIdentifier<Node>, List<HwvtepPhysicalPortAugmentation>> removed:
                 removeds.entrySet()) {
@@ -83,7 +84,7 @@ public class PhysicalPortRemoveCommand extends AbstractTransactCommand {
         }
     }
 
-    private Map<InstanceIdentifier<Node>, List<HwvtepPhysicalPortAugmentation>> extractRemoved(
+    protected Map<InstanceIdentifier<Node>, List<HwvtepPhysicalPortAugmentation>> extractRemovedPorts(
             Collection<DataTreeModification<Node>> changes, Class<HwvtepPhysicalPortAugmentation> class1) {
         Map<InstanceIdentifier<Node>, List<HwvtepPhysicalPortAugmentation>> result
             = new HashMap<InstanceIdentifier<Node>, List<HwvtepPhysicalPortAugmentation>>();