X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fimpl%2FLazyDataObjectModification.java;fp=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fimpl%2FLazyDataObjectModification.java;h=d81765eabf064d7777b354fd5fd6f77f1d7eacba;hb=ea21cef6fcfe81e2681a4e6f733ace7d1d22128e;hp=1170828ce94946a023c2b5c437a860f91e2244f5;hpb=99f1cd928117d23e13ab385b8d9b5b098554158a;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazyDataObjectModification.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazyDataObjectModification.java index 1170828ce9..d81765eabf 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazyDataObjectModification.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazyDataObjectModification.java @@ -140,11 +140,12 @@ final class LazyDataObjectModification 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());