Code cleanup for vpnintent module as per comments
[vpnservice.git] / vpnintent / impl / src / main / java / org / opendaylight / vpnservice / impl / MappingServiceManager.java
index e025b91706e596a6315c01ccb659d12be2ef5547..4ef274ef213573ee3e5c541a27a5e231598f86d3 100644 (file)
@@ -12,11 +12,14 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.opendaylight.nic.mapping.api.IntentMappingService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import com.google.common.base.Preconditions;
 
 public class MappingServiceManager {
 
+    private static final Logger LOG = LoggerFactory.getLogger(MappingServiceManager.class);
     private IntentMappingService intentMappingService;
     private String IP_PREFIX_PROPERTY = "ip_prefix";
     private String SWITCH_PORT_ID_PROPERTY = "switch_port";
@@ -79,6 +82,7 @@ public class MappingServiceManager {
             intentMappingService.add(siteName, null);
             return true;
         } catch (Exception e) {
+            LOG.error("Error deleting from NIC's mapping service {}", e);
             throw e;
         }
     }