From 97cfcbff6e6283ab7b8e081bc46eaa040e5a932c Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Wed, 13 Feb 2019 23:47:51 +0800 Subject: [PATCH] Fix: do not automatically deallocate EIP that was created when associated, should be deallocate explicitly by user --- pkg/compute/models/elasticips.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compute/models/elasticips.go b/pkg/compute/models/elasticips.go index 36b45d3a63..a49670678b 100644 --- a/pkg/compute/models/elasticips.go +++ b/pkg/compute/models/elasticips.go @@ -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