IP.Subnet.config_from_string-exclamation-mark
You're seeing just the function
config_from_string-exclamation-mark
, go back to IP.Subnet module for more information.
finds an ip address and subnet together from a config representation
(this is an ip/cidr string where the ip is not necessarily the routing
prefix for the cidr block).
This function is useful if you have configuration files that specify
IP address/subnet identities in this fashion (for example ifupdown
or netplan
configuration files)
returns {ip, subnet}
if the config string is valid; raises otherwise.
iex> IP.Subnet.config_from_string!("10.0.0.4/24")
{{10, 0, 0, 4}, %IP.Subnet{routing_prefix: {10, 0, 0, 0}, bit_length: 24}}