Bug 5212 - Neutron-mapper has dependency on Ofoverlay renderer
[groupbasedpolicy.git] / neutron-ovsdb / src / main / java / org / opendaylight / controller / config / yang / config / neutron_ovsdb / impl / NeutronOvsdbModule.java
index 34a10664d42c5d71eabafc1c20af813942da8bdc..d29e04f7182dbebb5463282d4f057cd9c4e14477 100644 (file)
@@ -33,15 +33,9 @@ public class NeutronOvsdbModule extends org.opendaylight.controller.config.yang.
 
     @Override
     public java.lang.AutoCloseable createInstance() {
-        final NeutronOvsdb neutronOvsdb = new NeutronOvsdb(getDataBrokerDependency(), getRpcRegistryDependency(), bundleContext);
+        final NeutronOvsdb neutronOvsdb = new NeutronOvsdb(getDataBrokerDependency(), getRpcRegistryDependency());
         LOG.info("Neutron ovsdb started.");
-        return new AutoCloseable() {
-
-            @Override
-            public void close() throws Exception {
-                neutronOvsdb.close();
-            }
-        };
+        return neutronOvsdb;
     }
 
     public void setBundleContext(BundleContext bundleContext) {