Bug 5596 Created lifecycle service
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / device / DeviceManagerImpl.java
index 455278fa1e05de89abc5cd53508c08f0f023cb72..587de817a7a88b85e376994536a0cccca87cdb33 100644 (file)
@@ -142,7 +142,7 @@ public class DeviceManagerImpl implements DeviceManager, ExtensionConverterProvi
         Preconditions.checkArgument(connectionContext != null);
 
         DeviceInfo deviceInfo = connectionContext.getDeviceInfo();
-        /**
+        /*
          * This part prevent destroy another device context. Throwing here an exception result to propagate close connection
          * in {@link org.opendaylight.openflowplugin.impl.connection.org.opendaylight.openflowplugin.impl.connection.HandshakeContextImpl}
          * If context already exist we are in state closing process (connection flapping) and we should not propagate connection close
@@ -180,10 +180,14 @@ public class DeviceManagerImpl implements DeviceManager, ExtensionConverterProvi
                 conductor,
                 outboundQueueProvider,
                 translatorLibrary,
-                this);
+                this,
+                connectionContext.getDeviceInfo(),
+                convertorExecutor);
 
         Verify.verify(deviceContexts.putIfAbsent(deviceInfo, deviceContext) == null, "DeviceCtx still not closed.");
 
+        deviceContext.setSwitchFeaturesMandatory(switchFeaturesMandatory);
+
         ((ExtensionConverterProviderKeeper) deviceContext).setExtensionConverterProvider(extensionConverterProvider);
         deviceContext.setNotificationPublishService(conductor.getNotificationPublishService());