private void releaseVpnLinkLPortTag(String idKey) { ReleaseIdInput releaseIdInput = new ReleaseIdInputBuilder().setPoolName(VpnConstants.PSEUDO_LPORT_TAG_ID_POOL_NAME).setIdKey(idKey).build(); idManager.releaseId(releaseIdInput); }
public ReleasedIdsHolderBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.ReleasedIds arg) { this._availableIdCount = arg.getAvailableIdCount(); this._delayedTimeSec = arg.getDelayedTimeSec(); this._delayedIdEntries = arg.getDelayedIdEntries(); }
public AllocateIdOutputBuilder setIdValue(final java.lang.Long value) { if (value != null) { checkIdValueRange(value); } this._idValue = value; return this; }
protected long createGroupId(String groupIdKey) { AllocateIdInput getIdInput = new AllocateIdInputBuilder() .setPoolName(NatConstants.SNAT_IDPOOL_NAME).setIdKey(groupIdKey) .build(); try { Future<RpcResult<AllocateIdOutput>> result = idManager.allocateId(getIdInput); RpcResult<AllocateIdOutput> rpcResult = result.get(); return rpcResult.getResult().getIdValue(); } catch (NullPointerException | InterruptedException | ExecutionException e) { LOG.trace("",e); } return 0; }
public DelayedIdEntriesBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.DelayedIdEntry arg) { this._id = arg.getId(); this._readyTimeSec = arg.getReadyTimeSec(); }
public AllocateIdRangeInputBuilder setSize(final java.lang.Long value) { if (value != null) { checkSizeRange(value); } this._size = value; return this; }
public CreateIdPoolInputBuilder setHigh(final java.lang.Long value) { if (value != null) { checkHighRange(value); } this._high = value; return this; }
public CreateIdPoolInputBuilder setLow(final java.lang.Long value) { if (value != null) { checkLowRange(value); } this._low = value; return this; }
public org.opendaylight.yangtools.yang.binding.YangModuleInfo getModuleInfo() { return $YangModuleInfoImpl.getInstance(); } }
public IdPools build() { return new IdPoolsImpl(this); }
public ReleaseIdInput build() { return new ReleaseIdInputImpl(this); }
public AllocateIdRangeInput build() { return new AllocateIdRangeInputImpl(this); }
public CreateIdPoolInput build() { return new CreateIdPoolInputImpl(this); }
public AllocateIdOutput build() { return new AllocateIdOutputImpl(this); }
public AllocateIdRangeOutput build() { return new AllocateIdRangeOutputImpl(this); }
public DeleteIdPoolInput build() { return new DeleteIdPoolInputImpl(this); }
public AllocateIdInput build() { return new AllocateIdInputImpl(this); }
protected long createNextHopPointer(String nexthopKey) { AllocateIdInput getIdInput = new AllocateIdInputBuilder() .setPoolName(NEXTHOP_ID_POOL_NAME).setIdKey(nexthopKey) .build(); //TODO: Proper error handling once IdManager code is complete try { Future<RpcResult<AllocateIdOutput>> result = idManager.allocateId(getIdInput); RpcResult<AllocateIdOutput> rpcResult = result.get(); return rpcResult.getResult().getIdValue(); } catch (NullPointerException | InterruptedException | ExecutionException e) { LOG.trace("",e); } return 0; }
public static void releaseId(IdManagerService idManager, String poolName, String idKey) { ReleaseIdInput releaseIdInput = new ReleaseIdInputBuilder().setPoolName(poolName).setIdKey(idKey).build(); Future<RpcResult<Void>> result = idManager.releaseId(releaseIdInput); }