Adding IdManager/LockManager and related Changes
[vpnservice.git] / interfacemgr / interfacemgr-impl / src / main / java / org / opendaylight / vpnservice / interfacemgr / InterfacemgrProvider.java
index b2003ff79792881a809f235892b818adf0cc99a8..e886115f33768695ae2ea6758ec8c2c343eccb3f 100644 (file)
@@ -98,8 +98,8 @@ public class InterfacemgrProvider implements BindingAwareProvider, AutoCloseable
     private void createIdPool() {
         CreateIdPoolInput createPool = new CreateIdPoolInputBuilder()
             .setPoolName(IfmConstants.IFM_IDPOOL_NAME)
-            .setIdStart(IfmConstants.IFM_IDPOOL_START)
-            .setPoolSize(new BigInteger(IfmConstants.IFM_IDPOOL_SIZE))
+                .setLow(IfmConstants.IFM_ID_POOL_START)
+                .setHigh(IfmConstants.IFM_ID_POOL_END)
             .build();
         //TODO: Error handling
         Future<RpcResult<Void>> result = idManager.createIdPool(createPool);