salt.modules.linux_ip module

The networking module for Non-RH/Deb Linux distros

salt.modules.linux_ip.down(iface, iface_type=None)

Shutdown a network interface

CLI Example:

salt '*' ip.down eth0

Return the contents of an interface script

CLI Example:

salt '*' ip.get_interface eth0

Return the current routing table

CLI Examples:

salt '*' ip.get_routes
salt '*' ip.get_routes eth0
salt.modules.linux_ip.up(iface, iface_type=None)

Start up a network interface

CLI Example:

salt '*' ip.up eth0