The networking module for RHEL/Fedora based distros
salt.modules.rh_ip.
apply_network_settings
(**settings)¶Apply global network configuration.
CLI Example:
salt '*' ip.apply_network_settings
salt.modules.rh_ip.
build_interface
(iface, iface_type, enabled, **settings)¶Build an interface script for a network interface.
CLI Example:
salt '*' ip.build_interface eth0 eth <settings>
salt.modules.rh_ip.
build_network_settings
(**settings)¶Build the global network script.
CLI Example:
salt '*' ip.build_network_settings <settings>
salt.modules.rh_ip.
build_routes
(iface, **settings)¶Build a route script for a network interface.
CLI Example:
salt '*' ip.build_routes eth0 <settings>
salt.modules.rh_ip.
down
(iface, iface_type)¶Shutdown a network interface
CLI Example:
salt '*' ip.down eth0
salt.modules.rh_ip.
get_interface
(iface)¶Return the contents of an interface script
CLI Example:
salt '*' ip.get_interface eth0
salt.modules.rh_ip.
get_network_settings
()¶Return the contents of the global network script.
CLI Example:
salt '*' ip.get_network_settings
salt.modules.rh_ip.
get_routes
(iface)¶Return the contents of the interface routes script.
CLI Example:
salt '*' ip.get_routes eth0
salt.modules.rh_ip.
up
(iface, iface_type)¶Start up a network interface
CLI Example:
salt '*' ip.up eth0
Generated on May 09, 2023 at 04:03:50 UTC.
You are viewing docs for the latest stable release, 3006.1. Switch to docs for the previous stable release, 3005.1, or to a recent doc build from the master branch.
© 2023 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy