private void createIdPool() { CreateIdPoolInput createPool = new CreateIdPoolInputBuilder().setPoolName(NeutronConstants.RD_IDPOOL_NAME) .setLow(NeutronConstants.RD_IDPOOL_START) .setHigh(new BigInteger(NeutronConstants.RD_IDPOOL_SIZE).longValue()).build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if ((result != null) && (result.get().isSuccessful())) { LOG.info("Created IdPool for Bgpvpn RD"); } } catch (InterruptedException | ExecutionException e) { LOG.error("Failed to create idPool for Bgpvpn RD", e); } }
private void createIdPool() { CreateIdPoolInput createPool = new CreateIdPoolInputBuilder() .setPoolName(ITMConstants.ITM_IDPOOL_NAME) .setLow(ITMConstants.ITM_IDPOOL_START) .setHigh(new BigInteger(ITMConstants.ITM_IDPOOL_SIZE).longValue()) .build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if ((result != null) && (result.get().isSuccessful())) { LOG.debug("Created IdPool for ITM Service"); } } catch (InterruptedException | ExecutionException e) { LOG.error("Failed to create idPool for ITM Service",e); } }
protected void createNaptPortPool(String PoolName) { LOG.debug("NAPT Service : createPortPool requested for : {}", PoolName); CreateIdPoolInput createPool = new CreateIdPoolInputBuilder() .setPoolName(PoolName) .setLow(LOW_PORT) .setHigh(HIGH_PORT) .build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if ((result != null) && (result.get().isSuccessful())) { LOG.debug("NAPT Service : Created PortPool"); } else { LOG.error("NAPT Service : Unable to create PortPool"); } } catch (InterruptedException | ExecutionException e) { LOG.error("Failed to create PortPool for NAPT Service",e); } }
protected void createGroupIdPool() { CreateIdPoolInput createPool = new CreateIdPoolInputBuilder() .setPoolName(NatConstants.SNAT_IDPOOL_NAME) .setLow(NatConstants.SNAT_ID_LOW_VALUE) .setHigh(NatConstants.SNAT_ID_HIGH_VALUE) .build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if ((result != null) && (result.get().isSuccessful())) { LOG.debug("NAT Service : Created GroupIdPool"); } else { LOG.error("NAT Service : Unable to create GroupIdPool"); } } catch (InterruptedException | ExecutionException e) { LOG.error("Failed to create PortPool for NAPT Service",e); } }
private void createIdPool() { CreateIdPoolInput createPool = new CreateIdPoolInputBuilder() .setPoolName(NEXTHOP_ID_POOL_NAME) .setLow(150000L) .setHigh(175000L) .build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if ((result != null) && (result.get().isSuccessful())) { LOG.info("Created IdPool for NextHopPointerPool"); } } catch (InterruptedException | ExecutionException e) { LOG.error("Failed to create idPool for NextHopPointerPool",e); } }
private void createIdPool() throws Exception { CreateIdPoolInput createPool = new CreateIdPoolInputBuilder().setPoolName(ElanConstants.ELAN_ID_POOL_NAME) .setLow(ElanConstants.ELAN_ID_LOW_VALUE).setHigh(ElanConstants.ELAN_ID_HIGH_VALUE).build(); Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if (result != null && result.get().isSuccessful()) { LOG.debug("ELAN Id Pool is created successfully"); } }
idManager.createIdPool(new CreateIdPoolInputBuilder().setPoolName(System.getProperty(tablesName)) .setLow(Long.valueOf(System.getProperty(tablesStr))) .setHigh(Long.valueOf(System.getProperty(tablesEnd))).build()); } else { LOG.trace("Creating pool with default values"); idManager.createIdPool(new CreateIdPoolInputBuilder().setPoolName("tables") .setLow((long) 0).setHigh((long) 254).build()); idManager.createIdPool(new CreateIdPoolInputBuilder().setPoolName(System.getProperty(groupsName)) .setLow(Long.valueOf(System.getProperty(groupsStr))) .setHigh(Long.valueOf(System.getProperty(groupsEnd))).build()); } else { LOG.trace("Creating pool with default values"); idManager.createIdPool(new CreateIdPoolInputBuilder().setPoolName("meters") .setLow((long) 0).setHigh((long) 254).build()); idManager.createIdPool(new CreateIdPoolInputBuilder().setPoolName(System.getProperty(metersName)) .setLow(Long.valueOf(System.getProperty(metersStr))) .setHigh(Long.valueOf(System.getProperty(metersEnd))).build()); } else { LOG.trace("Creating pool with default values"); idManager.createIdPool(new CreateIdPoolInputBuilder().setPoolName("groups") .setLow((long) 0).setHigh((long) 254).build());
.build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPool); if ((result != null) && (result.get().isSuccessful())) { LOG.info("Created IdPool for VPN Service"); .build(); try { Future<RpcResult<Void>> result = idManager.createIdPool(createPseudoLporTagPool); if (result != null && result.get().isSuccessful()) { LOG.debug("Created IdPool for Pseudo Port tags");