Migrate SouthboundUtils to use Uint types 63/92663/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Sep 2020 10:53:37 +0000 (12:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Sep 2020 10:56:53 +0000 (12:56 +0200)
This is a leftover migration from Magnesium, propagate the change
into public API.

Change-Id: I22348dabd81e7ac74ca66a71f66349b96fe1713e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
utils/southbound-utils/src/main/java/org/opendaylight/ovsdb/utils/southbound/utils/SouthboundUtils.java

index 2f67fa7b738268bbb940d33c1f12853c5c309e00..efc7322050596b6a70e5e0f06828fd8f92a00a87 100644 (file)
@@ -120,6 +120,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.IdentifiableIt
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument;
 import org.opendaylight.yangtools.yang.common.Uint16;
+import org.opendaylight.yangtools.yang.common.Uint32;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -652,7 +653,7 @@ public class SouthboundUtils {
     public boolean addBridge(Node ovsdbNode, String bridgeName, List<String> controllersStr,
             final Class<? extends DatapathTypeBase> dpType,
             List<BridgeOtherConfigs> otherConfigs,
-            Long maxBackoff, Long inactivityProbe) {
+            Uint32 maxBackoff, Uint32 inactivityProbe) {
         boolean result;
 
         LOG.info("addBridge: node: {}, bridgeName: {}, controller(s): {}", ovsdbNode, bridgeName, controllersStr);
@@ -721,7 +722,7 @@ public class SouthboundUtils {
      * @return success if the write to md-sal was successful
      */
     public boolean setBridgeController(Node ovsdbNode, String bridgeName, List<String> controllers,
-            Long maxBackoff, Long inactivityProbe) {
+            Uint32 maxBackoff, Uint32 inactivityProbe) {
         LOG.debug("setBridgeController: ovsdbNode: {}, bridgeNode: {}, controller(s): {}",
                 ovsdbNode, bridgeName, controllers);
 
@@ -777,7 +778,7 @@ public class SouthboundUtils {
 
     public boolean addTerminationPoint(
             Node bridgeNode, String portName, String type, Map<String, String> options, Map<String, String> externalIds,
-            Long ofPort) {
+            Uint32 ofPort) {
         OvsdbTerminationPointAugmentationBuilder tpAugmentationBuilder = new OvsdbTerminationPointAugmentationBuilder();
 
         tpAugmentationBuilder.setName(portName);
@@ -1087,7 +1088,7 @@ public class SouthboundUtils {
     }
 
     private static List<ControllerEntry> createControllerEntries(List<String> controllersStr,
-            Long maxBackoff, Long inactivityProbe) {
+            Uint32 maxBackoff, Uint32 inactivityProbe) {
         List<ControllerEntry> controllerEntries = new ArrayList<>();
         if (controllersStr != null) {
             for (String controllerStr : controllersStr) {