salt.modules.rh_ip

The networking module for RHEL/Fedora based distros

Members

build_bond

salt.modules.rh_ip.build_bond(iface, settings)

Create a bond script in /etc/modprobe.d with the passed settings

CLI Example:

salt '*' ip.build_bond br0 mode=balance-alb

build_interface

salt.modules.rh_ip.build_interface(iface, type, settings)

Build an interface script for a network interface.

CLI Example:

salt '*' ip.build_interface eth0 eth <settings>

down

salt.modules.rh_ip.down(iface)

Shutdown a network interface

CLI Example:

salt '*' ip.down eth0

exists

salt.modules.rh_ip.exists(path)

Test whether a path exists. Returns False for broken symbolic links

get_bond

salt.modules.rh_ip.get_bond(iface)

Return the content of a bond script

CLI Example:

salt '*' ip.get_bond br0

get_interface

salt.modules.rh_ip.get_interface(iface)

Return the contents of an interface script

CLI Example:

salt '*' ip.get_interface eth0

join

salt.modules.rh_ip.join(a, *p)

Join two or more pathname components, inserting '/' as needed. If any component is an absolute path, all previous path components will be discarded.

up

salt.modules.rh_ip.up(iface)

Start up a network interface

CLI Example:

salt '*' ip.up eth0

Parent topic

Table Of Contents

Previous topic

salt.modules.reg

Next topic

salt.modules.rh_service