summaryrefslogtreecommitdiff
path: root/plugins/modules
diff options
context:
space:
mode:
authorGaige B Paulsen <gaige@cluetrust.com>2025-01-04 04:00:11 -0500
committerGitHub <noreply@github.com>2025-01-04 04:00:11 -0500
commitc14a524d7134b54e315d72b5b449351fd04ae813 (patch)
treeaa6ee3985b97f0665e5baf8c8f9cc254fe2a3e59 /plugins/modules
parent9e159990f949652ec1b22f9a9a6e72828bdd1e80 (diff)
downloadvyos.vyos-c14a524d7134b54e315d72b5b449351fd04ae813.tar.gz
vyos.vyos-c14a524d7134b54e315d72b5b449351fd04ae813.zip
T6987: update vyos_logging_global for 1.4+ (#370)
* T68987: update for 1.4+ * chore: remove redundant vars * tests: fix vyos_facts integration tests * tests: fix integration tests for vyos_config * fix: restore documentation samples * chore: update readme
Diffstat (limited to 'plugins/modules')
-rw-r--r--plugins/modules/vyos_logging_global.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/plugins/modules/vyos_logging_global.py b/plugins/modules/vyos_logging_global.py
index 069d5080..9479e7b2 100644
--- a/plugins/modules/vyos_logging_global.py
+++ b/plugins/modules/vyos_logging_global.py
@@ -20,7 +20,7 @@ short_description: Logging resource module
description: This module manages the logging attributes of Vyos network devices
author: Sagar Paul (@KB-perByte)
notes:
- - Tested against vyos 1.2
+ - Tested against vyos 1.3.8+
- This module works with connection C(network_cli).
- The Configuration defaults of the Vyos network devices
are supposed to hinder idempotent behavior of plays
@@ -139,7 +139,7 @@ options:
facility: *facility
severity: *severity
protocol:
- description: syslog communication protocol
+ description: syslog communication protocol. Version 1.3 and below.
type: str
choices:
- udp
@@ -147,6 +147,12 @@ options:
hostname:
description: Remote host name or IP address
type: str
+ protocol:
+ description: syslog communication protocol. Version 1.4+
+ type: str
+ choices:
+ - udp
+ - tcp
syslog:
description: logging syslog
type: dict
@@ -715,17 +721,17 @@ commands:
returned: when I(state) is C(merged), C(replaced), C(overridden), C(deleted) or C(purged)
type: list
sample:
- - "set system syslog console facility local7 level err"
- - "set system syslog host 172.16.0.1 port 223"
- - "set system syslog global archive size 111"
+ - set system syslog console facility local7 level err
+ - set system syslog host 172.16.0.1 port 223
+ - set system syslog global archive size 111
rendered:
description: The provided configuration in the task rendered in device-native format (offline).
returned: when I(state) is C(rendered)
type: list
sample:
- - "set system syslog host 172.16.0.1 port 223"
- - "set system syslog user vyos facility local7 level debug"
- - "set system syslog global facility cron level debug"
+ - set system syslog host 172.16.0.1 port 223
+ - set system syslog user vyos facility local7 level debug
+ - set system syslog global facility cron level debu
gathered:
description: Facts about the network resource gathered from the remote device as structured data.
returned: when I(state) is C(gathered)