Neutron-mapper uses only DTOs from neutron.yang
[groupbasedpolicy.git] / neutron-mapper / src / main / java / org / opendaylight / controller / config / yang / config / neutron_mapper / impl / NeutronMapperModule.java
index 8922794ccb8413de7dbd2c384b3c695de2d2f317..0d543416165febbe196c75057afd58b639516fd9 100644 (file)
@@ -33,13 +33,11 @@ public class NeutronMapperModule extends org.opendaylight.controller.config.yang
     public java.lang.AutoCloseable createInstance() {
         final NeutronMapper neutronMapper = new NeutronMapper(getDataBrokerDependency(), getRpcRegistryDependency());
         LOG.info("Neutron mapper started.");
-        return new AutoCloseable() {
+        return neutronMapper;
+    }
 
-            @Override
-            public void close() throws Exception {
-                neutronMapper.close();
-            }
-        };
+    public static boolean isDebugEnabled() {
+        return true; // TODO add to config-subsystem
     }
 
 }