Casts an expression to a subnet value.
subnet(x:string) -> subnet
Description
Section titled “Description”The subnet
function casts an expression to a subnet.
x: string
Section titled “x: string”The string expression to cast.
Examples
Section titled “Examples”Cast a string to a subnet
Section titled “Cast a string to a subnet”from {x: subnet("1.2.3.4/16")}
{x: 1.2.0.0/16}
See Also
Section titled “See Also”int
,
ip
,
is_v4
,
is_v6
,
is_multicast
,
is_loopback
,
is_private
,
is_global
,
is_link_local
,
ip_category
,
time
,
uint
,
float,
string