Binding Codecs support of APPEARED,DISAPPEARED.
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / impl / LazyDataObjectModification.java
index 1170828ce94946a023c2b5c437a860f91e2244f5..d81765eabf064d7777b354fd5fd6f77f1d7eacba 100644 (file)
@@ -140,11 +140,12 @@ final class LazyDataObjectModification<T extends DataObject> implements DataObje
         switch(domData.getModificationType()) {
             case WRITE:
                 return DataObjectModification.ModificationType.WRITE;
+            case APPEARED:
             case SUBTREE_MODIFIED:
                 return DataObjectModification.ModificationType.SUBTREE_MODIFIED;
+            case DISAPPEARED:
             case DELETE:
                 return DataObjectModification.ModificationType.DELETE;
-
             default:
                 // TODO: Should we lie about modification type instead of exception?
                 throw new IllegalStateException("Unsupported DOM Modification type " + domData.getModificationType());