X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=legacy%2Fsal-compatibility%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Flegacy%2Fsal%2Fcompatibility%2Fadsal%2FFlowStatisticsAdapter.java;h=c1459c4491c534bacd60495269f999d848107503;hb=611180ac770b6038b526c54994701db16d1a8567;hp=df3951b8e3b90d3f9ef8ec79b07efb0126613878;hpb=2e272a6552fde581e7ebd195c6122401940b1f0c;p=openflowplugin.git diff --git a/legacy/sal-compatibility/src/main/java/org/opendaylight/openflowplugin/legacy/sal/compatibility/adsal/FlowStatisticsAdapter.java b/legacy/sal-compatibility/src/main/java/org/opendaylight/openflowplugin/legacy/sal/compatibility/adsal/FlowStatisticsAdapter.java index df3951b8e3..c1459c4491 100644 --- a/legacy/sal-compatibility/src/main/java/org/opendaylight/openflowplugin/legacy/sal/compatibility/adsal/FlowStatisticsAdapter.java +++ b/legacy/sal-compatibility/src/main/java/org/opendaylight/openflowplugin/legacy/sal/compatibility/adsal/FlowStatisticsAdapter.java @@ -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 flowsOnNode = readDelegate.readAllFlows(adNode); List 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 flowsOnNode = readDelegate.readAllFlows(adNode); List 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;