summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_logging.py
diff options
context:
space:
mode:
authorRohit <rohitthakur2590@outlook.com>2020-06-01 13:05:52 +0530
committerGitHub <noreply@github.com>2020-06-01 07:35:52 +0000
commit06235439435396c852535c2569542939bf65ef43 (patch)
treeff9facb3636f13b205bea0d14c7b0c9b12e3f18a /plugins/modules/vyos_logging.py
parent24a6864db07e5f61cdd952a528d4fd6c147d8db4 (diff)
downloadvyos.vyos-06235439435396c852535c2569542939bf65ef43.tar.gz
vyos.vyos-06235439435396c852535c2569542939bf65ef43.zip
[VyOS: ]all modules updated with FQCN and new doc changes (#33)
[VyOS: ]all modules updated with FQCN and new doc changes Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins/modules/vyos_logging.py')
-rw-r--r--plugins/modules/vyos_logging.py29
1 files changed, 13 insertions, 16 deletions
diff --git a/plugins/modules/vyos_logging.py b/plugins/modules/vyos_logging.py
index 9f81eb9e..8732647d 100644
--- a/plugins/modules/vyos_logging.py
+++ b/plugins/modules/vyos_logging.py
@@ -19,17 +19,14 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
-ANSIBLE_METADATA = {
- "metadata_version": "1.1",
- "status": ["preview"],
- "supported_by": "network",
-}
-DOCUMENTATION = """module: vyos_logging
+DOCUMENTATION = """
+module: vyos_logging
author: Trishna Guha (@trishnaguha)
short_description: Manage logging on network devices
description:
- This module provides declarative management of logging on Vyatta Vyos devices.
+version_added: 1.0.0
notes:
- Tested against VyOS 1.1.8 (helium).
- This module works with connection C(network_cli). See L(the VyOS OS Platform Options,../network/user_guide/platform_vyos.html).
@@ -68,36 +65,36 @@ extends_documentation_fragment:
EXAMPLES = """
- name: configure console logging
- vyos_logging:
+ vyos.vyos.vyos_logging:
dest: console
facility: all
level: crit
- name: remove console logging configuration
- vyos_logging:
+ vyos.vyos.vyos_logging:
dest: console
state: absent
- name: configure file logging
- vyos_logging:
+ vyos.vyos.vyos_logging:
dest: file
name: test
facility: local3
level: err
- name: Add logging aggregate
- vyos_logging:
+ vyos.vyos.vyos_logging:
aggregate:
- - { dest: file, name: test1, facility: all, level: info }
- - { dest: file, name: test2, facility: news, level: debug }
+ - {dest: file, name: test1, facility: all, level: info}
+ - {dest: file, name: test2, facility: news, level: debug}
state: present
- name: Remove logging aggregate
- vyos_logging:
+ vyos.vyos.vyos_logging:
aggregate:
- - { dest: console, facility: all, level: info }
- - { dest: console, facility: daemon, level: warning }
- - { dest: file, name: test2, facility: news, level: debug }
+ - {dest: console, facility: all, level: info}
+ - {dest: console, facility: daemon, level: warning}
+ - {dest: file, name: test2, facility: news, level: debug}
state: absent
"""