External api proposal
[openflowplugin.git] / legacy / sal-compatibility / src / main / java / org / opendaylight / openflowplugin / legacy / sal / compatibility / adsal / FlowStatisticsAdapter.java
index df3951b8e3b90d3f9ef8ec79b07efb0126613878..c1459c4491c534bacd60495269f999d848107503 100644 (file)
@@ -48,7 +48,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.f
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.FlowTableStatisticsUpdateBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.flow.table.and.statistics.map.FlowTableAndStatisticsMap;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.flow.table.and.statistics.map.FlowTableAndStatisticsMapBuilder;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev131103.TransactionId;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.TransactionId;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.duration.DurationBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.node.connector.statistics.Bytes;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.node.connector.statistics.BytesBuilder;
@@ -99,7 +99,7 @@ public class FlowStatisticsAdapter implements OpendaylightFlowStatisticsService,
             List<FlowOnNode> flowsOnNode = readDelegate.readAllFlows(adNode);
             List<FlowAndStatisticsMapList> flowsStatistics = toOdFlowsStatistics(flowsOnNode);
             GetAllFlowStatisticsFromFlowTableOutputBuilder builder = new GetAllFlowStatisticsFromFlowTableOutputBuilder();
-            builder.setTransactionId(new TransactionId(new BigInteger("0")));
+            builder.setTransactionId(new TransactionId(BigInteger.ZERO));
             rpcResultType = builder.setFlowAndStatisticsMapList(flowsStatistics).build();
 
             rpcResultBool = true;
@@ -126,7 +126,7 @@ public class FlowStatisticsAdapter implements OpendaylightFlowStatisticsService,
             List<FlowOnNode> flowsOnNode = readDelegate.readAllFlows(adNode);
             List<FlowAndStatisticsMapList> flowsStatistics = toOdFlowsStatistics(flowsOnNode);
             GetAllFlowsStatisticsFromAllFlowTablesOutputBuilder builder = new GetAllFlowsStatisticsFromAllFlowTablesOutputBuilder();
-            builder.setTransactionId(new TransactionId(new BigInteger("0")));
+            builder.setTransactionId(new TransactionId(BigInteger.ZERO));
             rpcResultType = builder.setFlowAndStatisticsMapList(flowsStatistics).build();
 
             rpcResultBool = true;