Fix bug in persister causing to persist last configuration in a loop. 52/3252/1
authorTomas Olvecky <tolvecky@cisco.com>
Fri, 29 Nov 2013 14:16:25 +0000 (15:16 +0100)
committerTomas Olvecky <tolvecky@cisco.com>
Fri, 29 Nov 2013 14:16:30 +0000 (15:16 +0100)
Change-Id: Ie2c35d5bb4aba19783b4c37d250e575fae2c50cc
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java

index a777ea4..ac6b5b2 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;