Migrate test-extension to use uint types 82/92682/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Sep 2020 22:50:37 +0000 (00:50 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Sep 2020 22:51:04 +0000 (00:51 +0200)
This is a straightforward replacement with Uint64.

JIRA: OPNFLWPLUG-1099
Change-Id: I2cc7607ec96c31566d2fbadb4bbab7cb54ed32e7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
extension/test-extension/src/main/java/org/opendaylight/openflowplugin/extension/test/Test.java

index d20acb4a3563eb0e60913df115a3c89043785648..76f8eff937ab152cbe074756a14c6af13396847b 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.openflowplugin.extension.test;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
-import java.math.BigInteger;
 import java.util.ArrayList;
 import java.util.List;
 import org.opendaylight.infrautils.utils.concurrent.LoggingFutures;
@@ -175,7 +174,7 @@ public class Test implements TestService {
             .setEnd(Uint16.valueOf(5));
         NxRegLoadBuilder nxRegLoadBuilder = new NxRegLoadBuilder();
         nxRegLoadBuilder.setDst(dstBld.build());
-        nxRegLoadBuilder.setValue(BigInteger.valueOf(55L));
+        nxRegLoadBuilder.setValue(Uint64.valueOf(55L));
         NxActionRegLoadNodesNodeTableFlowApplyActionsCaseBuilder topNxActionCaseBld =
                 new NxActionRegLoadNodesNodeTableFlowApplyActionsCaseBuilder();
         topNxActionCaseBld.setNxRegLoad(nxRegLoadBuilder.build());