mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
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:
parent
9f42882ed7
commit
59d8a3a5a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user