salt.modules.linux_ip

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

salt.modules.linux_ip.get_interface(iface)

Return the contents of an interface script

CLI Example:

salt '*' ip.get_interface eth0

salt.modules.linux_ip.get_routes(iface=None)

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

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.linux_ip.html