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

Deprecated 'network', introduce 'network_interface' #937

Merged
merged 1 commit into from
Feb 10, 2015

Conversation

sparkprime
Copy link
Contributor

This addresses #609 and #509. The old network { } block is deprecated by this PR. Here is how to rewrite configs:

network {
    source = "foo"
}

becomes

network_interface {
    network = "foo"
    access_config {
    }
}


network {
    source = "foo"
    external_address = "blah"
}

becomes

network_interface {
    network = "foo"
    access_config {
        ip_nat = "blah"
    }
}

Finally, the following is now possible (to avoid any external address).

network_interface {
    network = "foo"
}

I am unsure how to deprecate attributes within the code. Is there a precedent for that? Shall I just print to stderr from inside the provider?

thanks

@phinze
Copy link
Contributor

phinze commented Feb 6, 2015

Is there a precedent for that? Shall I just print to stderr from inside the provider?

There is no precedent for this, so I think printing to stderr works AOK here.

@sparkprime
Copy link
Contributor Author

I wonder where to print it? Create/Update will only get called if the user actually changes it / makes new resources which is not what we want. We want it to print a message if the config contains a matching resource, even if that resource is not changed.

@phinze
Copy link
Contributor

phinze commented Feb 6, 2015

Eh dang you're right. Probably need schema/helper support for this.

@sparkprime
Copy link
Contributor Author

It looks like it's not even possible to use stdout/stderr from a provider. I suggest just applying this for now (people are waiting on it) and we'll have to figure out how to do deprecation warnings before the next release.

@phinze
Copy link
Contributor

phinze commented Feb 10, 2015

Ok that sounds reasonable. Sprouted #957 to track the deprecation support.

@phinze
Copy link
Contributor

phinze commented Feb 10, 2015

LGTM! Merging

phinze added a commit that referenced this pull request Feb 10, 2015
Deprecated 'network', introduce 'network_interface'
@phinze phinze merged commit 6e27da8 into hashicorp:master Feb 10, 2015
@sparkprime sparkprime deleted the pr_network_interface branch May 2, 2015 02:34
@ghost
Copy link

ghost commented May 3, 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 May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants