Fix NetconfKeystoreAdapter onDataTreeChanged method 19/79619/3
authorJakub Morvay <jmorvay@frinx.io>
Thu, 17 Jan 2019 14:19:32 +0000 (15:19 +0100)
committerJakub Morvay <jakub.morvay@gmail.com>
Thu, 17 Jan 2019 14:58:53 +0000 (14:58 +0000)
Make sure to process all incoming DataObject modifications under
netconf-keystore:keystore container. Do not stop after handling
key-credential list items, handle also modified private-key and
trusted-certificate list items.

JIRA: NETCONF-598
Change-Id: I7e56791c46bd860f98259f73f2832e49abc2e3dc
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfKeystoreAdapter.java

index 19577f4f2490565f2849922adebbedf79893837b..a84f218bd72ebebf4cdc21ada6afa9bc0c6ddbd1 100644 (file)
@@ -160,7 +160,6 @@ public class NetconfKeystoreAdapter implements ClusteredDataTreeChangeListener<K
                     if (dataAfter != null) {
                         dataAfter.getKeyCredential().forEach(pair -> pairs.put(pair.key().getKeyId(), pair));
                     }
-                    break;
 
                 } else if (changedChild.getDataType().equals(PrivateKey.class)) {
                     onPrivateKeyChanged((DataObjectModification<PrivateKey>)changedChild);