mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Fix: do not automatically deallocate EIP that was created when
associated, should be deallocate explicitly by user
This commit is contained in:
@@ -770,7 +770,8 @@ func (manager *SElasticipManager) AllocateEipAndAssociateVM(ctx context.Context,
|
||||
eip.SetModelManager(manager)
|
||||
|
||||
eip.Mode = EIP_MODE_STANDALONE_EIP
|
||||
eip.AutoDellocate = tristate.True
|
||||
// do not implicitly auto dellocate EIP, should be set by user explicitly
|
||||
// eip.AutoDellocate = tristate.True
|
||||
eip.Bandwidth = bw
|
||||
eip.ChargeType = chargeType
|
||||
eip.ProjectId = vm.ProjectId
|
||||
|
||||
Reference in New Issue
Block a user