Module for gathering and managing network information
Performs a DNS lookup with dig
CLI Example:
salt '*' network.dig archlinux.org
Returns True if host is within specified subnet, otherwise False
Return a dictionary of information about all the interfaces on the minion
CLI Example:
salt '*' network.interfaces
Returns a list of IPv4 addresses assigned to the host. 127.0.0.1 is ignored, unless 'include_loopback=True' is indicated. If 'interface' is provided, then only IP addresses from that interface will be returned.
Returns a list of IPv6 addresses assigned to the host. ::1 is ignored, unless 'include_loopback=True' is indicated. If 'interface' is provided, then only IP addresses from that interface will be returned.
Return information on open ports and states
CLI Example:
salt '*' network.netstat
Performs a ping to a host
CLI Example:
salt '*' network.ping archlinux.org
Returns a list of subnets to which the host belongs
Performs a traceroute to a 3rd party host
CLI Example:
salt '*' network.traceroute archlinux.org