mc_network / network registry¶
If you alter this module and want to test it, do not forget to deploy it on minion using:
salt '*' saltutil.sync_modules
Documentation of this module is available with:
salt '*' sys.doc mc_network
-
mc_states.modules.mc_network.
default_net
()¶ Function to be used on a running system (opposed to settings) Use by default a bridge (with main interface as the only first port) or the main interface as the link with internet
-
mc_states.modules.mc_network.
ext_ip
()¶ Return the external IP address
-
mc_states.modules.mc_network.
get_broadcast
(dn, ip)¶ Get a server broadcase ipsubnet.255
-
mc_states.modules.mc_network.
get_dnss
(dn, ip)¶ Get server dnss
-
mc_states.modules.mc_network.
get_fo_broadcast
(dn, ip)¶ Get broadcast for an ip failover
-
mc_states.modules.mc_network.
get_fo_netmask
(dn, ip)¶ Get netmask for an ip failover
-
mc_states.modules.mc_network.
get_gateway
(dn, ip)¶ Get a server gateway default to ipsubnet.254 except for online where the gw == ipsubnet.1
-
mc_states.modules.mc_network.
get_netmask
(dn, ip)¶ Get a server netmask default to ipsubnet.255
-
mc_states.modules.mc_network.
ns_whois
(name, ttl=86400, cache=True, whois_ttl=2592000)¶ Make a whois request and return data For evident performance questons, We cache whois data for one month!
-
mc_states.modules.mc_network.
settings
()¶ network registry
- networkManaged
- Do we manage the network configuration
- interfaces
- Dict of configuration for network interfaces
- main_ip
- main server ip
- hostname
- main hostname
- domain
- main domain
- devhost_ip
- devhost ip
-
mc_states.modules.mc_network.
whois_data
(ip, ttl=86400, whois_ttl=2592000)¶ Make a whois request and return data For evident performance questons, We cache whois data for one month!