The networking module for SUSE based distros
New in version 3005.
Apply global network configuration.
The network settings to apply
The result of service.reload
for network
service
CLI Example:
salt '*' ip.apply_network_settings
Build an interface script for a network interface.
The name of the interface to build the configuration for
eth
bond
alias
clone
ipsec
dialup
bridge
slave
vlan
ipip
ib
Build the interface enabled or disabled
The settings for the interface
A dictionary of file/content
CLI Example:
salt '*' ip.build_interface eth0 eth <settings>
Build the global network script.
The network settings
A dictionary of file/content
CLI Example:
salt '*' ip.build_network_settings <settings>
Build a route script for a network interface.
The name of the interface to build the routes for
The settings for the routes
A dictionary of file/content
CLI Example:
salt '*' ip.build_routes eth0 <settings>
Shutdown a network interface
The name of the interface to shutdown
The type of the interface
If slave
is specified, no any action is performing
Default is None
The result of ifdown
command or None
if slave
iface_type was specified
CLI Example:
salt '*' ip.down eth0
Return the contents of an interface script
The name of the interface to get settings for
A dictionary of file/content
CLI Example:
salt '*' ip.get_interface eth0
Return the contents of the global network script.
The name of the interface to start up
The type of the interface
If slave
is specified, no any action is performing
Default is None
A dictionary of file/content
CLI Example:
salt '*' ip.get_network_settings
Return the contents of the interface routes script.
The name of the interface to get the routes for
A dictionary of file/content
CLI Example:
salt '*' ip.get_routes eth0
Start up a network interface
The name of the interface to start up
The type of the interface
If slave
is specified, no any action is performing
Default is None
The result of ifup
command or None
if slave
iface_type was specified
CLI Example:
salt '*' ip.up eth0