Bug 5592 - NodeId+DatapathId in Services (remove dependency on DeviceContext)
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / statistics / services / compatibility / AbstractCompatibleStatService.java
index 47eb56819a2c58edf5beee18953b67483c2e8e3f..1a5c5a1d5f3473d87f372a5c50b55885e46c2c4b 100644 (file)
@@ -42,7 +42,7 @@ public abstract class AbstractCompatibleStatService<I, O, N extends Notification
     public AbstractCompatibleStatService(RequestContextStack requestContextStack, DeviceContext deviceContext, AtomicLong compatibilityXidSeed) {
         super(requestContextStack, deviceContext);
         this.compatibilityXidSeed = compatibilityXidSeed;
-        ofVersion = OpenflowVersion.get(getDeviceContext().getDeviceState().getVersion());
+        ofVersion = OpenflowVersion.get(getVersion());
     }
 
     public OpenflowVersion getOfVersion() {