Merge pull request #6925 from DreamHostData/topic/cidrsubnet-ipv6-example

add an example of cidrsubnet() being used with ipv6
This commit is contained in:
James Nugent 2016-05-29 14:04:07 -07:00
commit f3a3cfab73
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,9 @@ The supported built-in functions are:
* `cidrsubnet(iprange, newbits, netnum)` - Takes an IP address range in
CIDR notation (like ``10.0.0.0/8``) and extends its prefix to include an
additional subnet number. For example,
``cidrsubnet("10.0.0.0/8", 8, 2)`` returns ``10.2.0.0/16``.
``cidrsubnet("10.0.0.0/8", 8, 2)`` returns ``10.2.0.0/16``;
``cidrsubnet("2607:f298:6051:516c::/64", 8, 2)`` returns
``2607:f298:6051:516c:200::/72``.
* `coalesce(string1, string2, ...)` - Returns the first non-empty value from
the given arguments. At least two arguments must be provided.