-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
provider/vsphere: Change ip_address parameter for ipv6 support #4035
Conversation
@tkak similar to how we did with the vcenter parameter, can we keep the old parameters as deprecated for a release so we don't break existing users config without warning them? |
@phinze OK, I'll try to fix. |
…6_address for ipv6 support
@phinze I tried to fix for the old parameters. Could you check that? |
@@ -321,7 +361,7 @@ func resourceVSphereVirtualMachineCreate(d *schema.ResourceData, meta interface{ | |||
} | |||
} | |||
|
|||
if _, ok := d.GetOk("network_interface.0.ip_address"); !ok { | |||
if _, ok := d.GetOk("network_interface.0.ipv4_address"); !ok { |
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.
This shouldn't be accessing the internal storage format of network_interface
, I'll follow up post-merge with a commit tweaking this and cc you so you can see what I mean. 👍
Looks good with one tweak I'll make on master. Thanks @tkak! |
provider/vsphere: Change ip_address parameter for ipv6 support
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. |
This is a proposal PR to fix #3957.
I'd like to split
ip_address
parameter toipv4_address
andipv6_address
to support IPv6 address. (But, current version can not configure IPv6 address, just only read IPv6 address.)And I'm thinking about changing
subnet_mask
parameter toipv4_prefix_length
andipv6_prefix_length
to simplify a configuration file and the code.Before:
After:
Thanks!