Update service reference persistance according to new ServiceRegistry API in config...
[controller.git] / opendaylight / netconf / config-netconf-connector / src / main / java / org / opendaylight / controller / netconf / confignetconfconnector / operations / editconfig / RemoveEditConfigStrategy.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.netconf.confignetconfconnector.operations.editconfig;
10
11 import org.opendaylight.controller.config.util.ConfigTransactionClient;
12 import org.opendaylight.controller.netconf.confignetconfconnector.mapping.attributes.fromxml.AttributeConfigElement;
13 import org.opendaylight.controller.netconf.confignetconfconnector.mapping.config.ServiceRegistryWrapper;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
16
17 import java.util.Map;
18
19 public class RemoveEditConfigStrategy extends DeleteEditConfigStrategy {
20
21     private static final Logger logger = LoggerFactory.getLogger(RemoveEditConfigStrategy.class);
22
23     @Override
24     void handleMissingInstance(Map<String, AttributeConfigElement> configuration, ConfigTransactionClient ta,
25                                String module, String instance, ServiceRegistryWrapper services) {
26         logger.warn("Unable to delete {}:{}, ServiceInstance not found", module, instance);
27     }
28 }