firewalld: Add reload() method to module.

reload_rules() was chosen over reload() because of pylint complaining
about redefining the reload() builtin.
This commit is contained in:
Hannes Körber 2016-05-14 17:52:45 +02:00
parent 9f42882ed7
commit 59d8a3a5a1
No known key found for this signature in database
GPG Key ID: 742D9185693F34E6

View File

@ -68,6 +68,22 @@ def version():
return __firewall_cmd('--version')
def reload_rules():
'''
Reload the firewall rules, which makes the permanent configuration the new
runtime configuration without losing state information.
.. versionadded:: Boron
CLI Example:
.. code-block:: bash
salt '*' firewalld.reload
'''
return __firewall_cmd('--reload')
def default_zone():
'''
Print default zone for connections and interfaces