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

Networking v2: Add no_fixed_ip to openstack_networking_port_v2 #433

Merged

Conversation

jtopjian
Copy link
Contributor

This commit adds the no_fixed_ip argument to the
openstack_networking_port_v2 resource which will enable a port to
be created without a Fixed IP address set.

For #429

This commit adds the `no_fixed_ip` argument to the
openstack_networking_port_v2 resource which will enable a port to
be created without a Fixed IP address set.
@theopenlab-ci
Copy link

theopenlab-ci bot commented Sep 26, 2018

Build succeeded.

//
// Since we're only concerned about a value of "true",
// GetOk is used.
if _, ok := d.GetOk("no_fixed_ip"); ok {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's better to hide this logic in the resourcePortFixedIpsV2? Because it doesn't make sense to run resourcePortFixedIpsV2 if no_fixed_ip was set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me. See the latest commit.

Copy link
Member

@ozerovandrei ozerovandrei left a comment

Choose a reason for hiding this comment

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

I have a single question. But it doesn't seem to be critical.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Sep 27, 2018

Build succeeded.

Copy link
Member

@ozerovandrei ozerovandrei left a comment

Choose a reason for hiding this comment

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

LGTM!

@jtopjian jtopjian merged commit 9e9dd72 into terraform-provider-openstack:master Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants