Skip to content
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

Add Vpc , Vpc peering, Route, Subnet #14

Merged
merged 12 commits into from
Jul 24, 2018

Conversation

d-apurva
Copy link
Contributor

This PR adds a capability to manage Huawei's VPC Peering Connection, Routes, Vpc, and Subnets.

@niuzhenguo
Copy link
Member

Please resolve conflicts and update CHANGELOG, thanks!

@frisky-dis
Copy link
Contributor

Done

log.Printf("[INFO] Vpc Subnet ID: %s", n.ID)

stateConf := &resource.StateChangeConf{
Pending: []string{"CREATING"},
Copy link
Member

Choose a reason for hiding this comment

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

According to the API doc and feedbacks from users, "UNKNOWN" should be included as Pending status, and seems there's no a status "CREATING".

vpc_id := d.Get("vpc_id").(string)

stateConf := &resource.StateChangeConf{
Pending: []string{"ACTIVE"},
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

Copy link
Contributor

Choose a reason for hiding this comment

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

Done


//If subnet status is other than Active, send error
if n.Status == "DOWN" || n.Status == "ERROR" || n.Status == "UNKNOWN" {
return nil, "", fmt.Errorf("Subnet status: '%s'", n.Status)
Copy link
Member

Choose a reason for hiding this comment

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

UNKNOWN here is a normal status.

"github.com/hashicorp/terraform/helper/resource"
)

// PASS
Copy link
Member

Choose a reason for hiding this comment

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

Please help to clean up such test results "// PASS"

Copy link
Contributor

Choose a reason for hiding this comment

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

done

@niuzhenguo niuzhenguo merged commit 1adc1ab into huaweicloud:master Jul 24, 2018
@simrannagra simrannagra deleted the vpc-peering-route-subnet branch August 6, 2018 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants