-
Notifications
You must be signed in to change notification settings - Fork 163
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
Add Vpc , Vpc peering, Route, Subnet #14
Conversation
Please resolve conflicts and update CHANGELOG, thanks! |
Done |
log.Printf("[INFO] Vpc Subnet ID: %s", n.ID) | ||
|
||
stateConf := &resource.StateChangeConf{ | ||
Pending: []string{"CREATING"}, |
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.
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"}, |
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.
ditto.
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.
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) |
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.
UNKNOWN here is a normal status.
"github.com/hashicorp/terraform/helper/resource" | ||
) | ||
|
||
// PASS |
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.
Please help to clean up such test results "// PASS"
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.
done
This PR adds a capability to manage Huawei's VPC Peering Connection, Routes, Vpc, and Subnets.