Migrate arbitratorreconciliation to uint types 26/92326/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 30 Aug 2020 20:26:54 +0000 (22:26 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 30 Aug 2020 20:27:36 +0000 (22:27 +0200)
There is just a single violation, fix it up.

JIRA: OPNFLWPLUG-1099
Change-Id: I8bca4d9faed14dd39e69f36915b680155c185504
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
applications/arbitratorreconciliation/impl/src/main/java/org/opendaylight/openflowplugin/applications/arbitratorreconciliation/impl/ArbitratorReconciliationManagerImpl.java

index 8042b308524ec7dcbefaffea81d2ec2318d0d0f7..e677cf0a406475e57df1b5aa496252c5824b5793 100644 (file)
@@ -84,6 +84,7 @@ import org.opendaylight.yangtools.yang.binding.RpcService;
 import org.opendaylight.yangtools.yang.common.RpcError;
 import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
+import org.opendaylight.yangtools.yang.common.Uint32;
 import org.opendaylight.yangtools.yang.common.Uint64;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -273,7 +274,7 @@ public class ArbitratorReconciliationManagerImpl implements ArbitratorReconcileS
             InstanceIdentifier<FlowCapableNode> nodeIdentity = deviceInfo.getNodeInstanceIdentifier()
                     .augmentation(FlowCapableNode.class);
             String node = nodeIdentity.firstKeyOf(Node.class).getId().getValue();
-            BundleId bundleIdValue = new BundleId(BUNDLE_ID.getAndIncrement());
+            BundleId bundleIdValue = new BundleId(Uint32.valueOf(BUNDLE_ID.getAndIncrement()));
             LOG.debug("Triggering arbitrator reconciliation for device :{}", node);
             final NodeRef nodeRef = new NodeRef(nodeIdentity.firstIdentifierOf(Node.class));