Reuse singleLayer boolean
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / rpc / RpcContextImpl.java
index face6e96160c3a58b32f58273572dc4675409639..5f680a37d1fc91f87f3bc5c94b6bd1637d2c3703 100644 (file)
@@ -334,7 +334,7 @@ final class RpcContextImpl implements RpcContext {
 
         // Support deprecated statistic related services for backward compatibility. The only exception from deprecation
         // is the aggregated flow statistic with match criteria input.
-        if (isStatisticsRpcEnabled && !deviceContext.canUseSingleLayerSerialization()) {
+        if (isStatisticsRpcEnabled && !singleLayer) {
             final var compatibilityXidSeed = new AtomicLong();
             // FIXME: why is this separate?
             final var statsCompatXidSeed = new AtomicLong();