mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-18 04:01:08 -05:00
As of this commit, that layout doesn't exist yet, but I'm isolating the one-line changes to their own commit to try and keep your eyes from glazing over.
1.0 KiB
1.0 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| language | cidrnetmask - Functions - Configuration Language | docs-funcs-ipnet-cidrnetmask | The cidrnetmask function converts an IPv4 address prefix given in CIDR notation into a subnet mask address. |
cidrnetmask Function
-> Note: This page is about Terraform 0.12 and later. For Terraform 0.11 and earlier, see 0.11 Configuration Language: Interpolation Syntax.
cidrnetmask converts an IPv4 address prefix given in CIDR notation into
a subnet mask address.
cidrnetmask(prefix)
prefix must be given in IPv4 CIDR notation, as defined in
RFC 4632 section 3.1.
The result is a subnet address formatted in the conventional dotted-decimal IPv4 address syntax, as expected by some software.
CIDR notation is the only valid notation for IPv6 addresses, so cidrnetmask
produces an error if given an IPv6 address.
Examples
> cidrnetmask("172.16.0.0/12")
255.240.0.0