Skip to content

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

Merged
merged 7 commits into from Nov 13, 2019
Merged

add resrouce vpn gateway, customer gateway and vpn connection #183

merged 7 commits into from Nov 13, 2019

Conversation

gailwang
Copy link
Contributor

add resrouce vpn gateway, customer gateway and vpn connection

if tErr != nil {
log.Printf("[CRITAL]%s create VPN connection failed, reason:%s\n", logId, tErr.Error())
return tErr
}
Copy link
Contributor

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时间

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同样 此时 不需要执行下面的DeleteVpnGateway

@oliverpei oliverpei merged commit 64eb351 into tencentcloudstack:master Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants