Merge "Fix bug in persister causing to persist last configuration in a loop."
authorEd Warnicke <eaw@cisco.com>
Fri, 29 Nov 2013 15:23:13 +0000 (15:23 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 29 Nov 2013 15:23:13 +0000 (15:23 +0000)
opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java

index a777ea4099e5bf2595f57b512618551c4c4d2d68..ac6b5b28fd697fdf1290f3e5d8df2a6717834429 100644 (file)
@@ -109,6 +109,7 @@ public class ConfigPersisterNotificationHandler implements NotificationListener,
                 logger.trace("Pushing following xml to netconf {}", configSnapshot);
                 try {
                     pushLastConfig(XmlUtil.readXmlToElement(configSnapshot));
+                    return;
                 } catch(ConflictingVersionException e) {
                     closeClientAndDispatcher(netconfClient, netconfClientDispatcher);
                     lastException = e;