Adding IdManager/LockManager and related Changes
[vpnservice.git] / vpnmanager / vpnmanager-impl / src / main / java / org / opendaylight / vpnservice / VpnserviceProvider.java
index 0548c3622fcf9b819cf9038d3171875d0cc575cd..eb8b3d12330e9998f7d7b1148dde47a7c5b97f6a 100644 (file)
@@ -85,8 +85,8 @@ public class VpnserviceProvider implements BindingAwareProvider, IVpnManager,
     private void createIdPool() {
         CreateIdPoolInput createPool = new CreateIdPoolInputBuilder()
             .setPoolName(VpnConstants.VPN_IDPOOL_NAME)
-            .setIdStart(VpnConstants.VPN_IDPOOL_START)
-            .setPoolSize(new BigInteger(VpnConstants.VPN_IDPOOL_SIZE))
+            .setLow(VpnConstants.VPN_IDPOOL_START)
+            .setHigh(new BigInteger(VpnConstants.VPN_IDPOOL_SIZE).longValue())
             .build();
         try {
            Future<RpcResult<Void>> result = idManager.createIdPool(createPool);