Fix NetconfKeystoreAdapter onDataTreeChanged method 18/79618/4
authorJakub Morvay <jmorvay@frinx.io>
Thu, 17 Jan 2019 14:19:32 +0000 (15:19 +0100)
committerJakub Morvay <jmorvay@frinx.io>
Thu, 17 Jan 2019 14:54:55 +0000 (15:54 +0100)
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 f9cd8990928fbb633ff21467a99d719c43957b17..b1d707f7081833e16c130052a1b315a7a83e6b9b 100644 (file)
@@ -159,7 +159,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);