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

Triton NICs #6418

Merged
merged 2 commits into from
Apr 29, 2016
Merged

Triton NICs #6418

merged 2 commits into from
Apr 29, 2016

Conversation

BrianHicks
Copy link
Contributor

Replace networks with NICs. NICs don't have the odd behaviour of having to change networks on every apply.

Tests pass for me, both manually and automated. But I've seen them fail randomly, so if someone could verify that the test strategy looks good before merging I'd appreciate it.

@@ -108,17 +109,53 @@ func resourceMachine() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"networks": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @BrianHicks

Dropping networks will remove backward compatibility. Therefore we need to either:

  1. Have a migration in place (e.g. https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_instance_migrate.go)
    or
  2. Leave the field in and add the deprecated tag (https://github.com/hashicorp/terraform/blob/master/builtin/providers/cloudstack/resource_cloudstack_nic.go)

If you go for #2 you need to be able to handle the code either way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, see line 193. The code handles both but prints a warning because the field is marked as deprecated. I just added nic above network, which I guess shows up weird in this diff.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup just a weird diff artefact. Well done git!

@jen20
Copy link
Contributor

jen20 commented Apr 29, 2016

LGTM - thanks @BrianHicks! As an aside we now have the Triton tests running every night now, so this will get a few runs before making it into 0.6.16.

@jen20 jen20 merged commit 43837fd into hashicorp:master Apr 29, 2016
@BrianHicks BrianHicks deleted the f-triton-nic branch April 29, 2016 19:14
@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants