Fix: do not automatically deallocate EIP that was created when

associated, should be deallocate explicitly by user
This commit is contained in:
Qiu Jian
2019-02-13 23:47:51 +08:00
parent cf3c9ee355
commit 97cfcbff6e
+2 -1
View File
@@ -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