You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our documentation says that cidrnetmask() only works with IPv4. But a user tried using it with can(cidrnetmask()) and found out that it doesn't actually error with IPv6. For either IPv4 or IPv6, it returns a netmask.
It is technically invalid to create a netmask for IPv6, so we should correct the behavior of this function to return an error as promised.
Terraform Version
Terraform v1.1.7
Expected Behavior
cidrnetmask() should produce an error when trying to create a netmask for IPv6.
Actual Behavior
A user found that for either IPv4 or IPv6, cidrnetmask() returns a netmask.
References
PR where user found this issue and provides additional context: #30660
The text was updated successfully, but these errors were encountered:
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.
Our documentation says that
cidrnetmask()
only works with IPv4. But a user tried using it withcan(cidrnetmask())
and found out that it doesn't actually error with IPv6. For either IPv4 or IPv6, it returns a netmask.It is technically invalid to create a netmask for IPv6, so we should correct the behavior of this function to return an error as promised.
Terraform Version
Terraform v1.1.7
Expected Behavior
cidrnetmask()
should produce an error when trying to create a netmask for IPv6.Actual Behavior
A user found that for either IPv4 or IPv6,
cidrnetmask()
returns a netmask.References
PR where user found this issue and provides additional context: #30660
The text was updated successfully, but these errors were encountered: