- ConfigTransactionClient ta, ServiceRegistryWrapper services) {
- LOG.debug("Skipping configuration element for {}:{}", module, instance);
+ ConfigTransactionClient ta, ServiceRegistryWrapper services) throws NetconfConfigHandlingException {
+ if(configuration != null && !configuration.isEmpty()) {
+ for (Map.Entry<String, AttributeConfigElement> attrEntry : configuration.entrySet()) {
+ if(attrEntry.getValue().getEditStrategy().isPresent()) {
+ final Map<String, AttributeConfigElement> partialConfig =
+ Collections.singletonMap(attrEntry.getKey(), attrEntry.getValue());
+ attrEntry.getValue().getEditStrategy().get().getFittingStrategy()
+ .executeConfiguration(module, instance, partialConfig, ta, services);
+ } else {
+ LOG.debug("Skipping configuration element for {}:{}:{}", module, instance, attrEntry.getKey());
+ }
+ }
+ } else {
+ LOG.debug("Skipping configuration element for {}:{}", module, instance);
+ }