Krug.NetworkUtil (Krug v2.0.27) View Source
Utilitary module to handle network info
Link to this section Summary
Functions
Extract a list of valid ip v4 addresses from a "ips_string", splitted by the "ips_separator".
Based in a IP address and a netmask (subnet /16 or /24), generates a list of IP addresses suposed by in a same network/VPC
Obtains the local machine ipv4 local network IP (i.e: 192.168.1.2 | 172.0.0.2)
Obtains the local machine ipv4 local netmask (i.e: 255.255.0.0 | 255.255.255.0)
Filter the nodes list (atom list on format :"my_cookie@ipv4") according IP address and get the major address.
Filter the nodes list (atom list on format :"my_cookie@ipv4") according IP address and get the minor address.
Start the local node from a cluster of nodes
Link to this section Functions
Extract a list of valid ip v4 addresses from a "ips_string", splitted by the "ips_separator".
Based in a IP address and a netmask (subnet /16 or /24), generates a list of IP addresses suposed by in a same network/VPC
For subnets /16 will be returned only a limit range of ≃10% of all possible IP's. This will be IP's that are near neighboors of given "ipv4_address". Example given "ipv4_address" was 192.168.40.120, then the first will be 192.168.30.0 and the last will be 192.168.50.255
Obtains the local machine ipv4 local network IP (i.e: 192.168.1.2 | 172.0.0.2)
Obtains the local machine ipv4 local netmask (i.e: 255.255.0.0 | 255.255.255.0)
Filter the nodes list (atom list on format :"my_cookie@ipv4") according IP address and get the major address.
Filter the nodes list (atom list on format :"my_cookie@ipv4") according IP address and get the minor address.
start_local_node_to_cluster_ip_v4(cluster_name, cluster_cookie, cloud_provider)
View SourceStart the local node from a cluster of nodes