-
Notifications
You must be signed in to change notification settings - Fork 141
add resrouce vpn gateway
, customer gateway
and vpn connection
#183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
if tErr != nil { | ||
log.Printf("[CRITAL]%s create VPN connection failed, reason:%s\n", logId, tErr.Error()) | ||
return tErr | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处有点问题len(result.Response.VpnConnectionSet) == 0 表示线上不存在了,下面就不用在执行DeleteCustomerGateway,不然服务端会一直报错writeRetryTimeout时间
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个上面describe的是tunnel不是gateway,删掉了tunnel后再删除gateway
return retryError(e) | ||
} else { | ||
if len(result.Response.VpnConnectionSet) == 0 { | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同样 此时 不需要执行下面的DeleteVpnGateway
add resrouce
vpn gateway
,customer gateway
andvpn connection