summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_logging_global.py
diff options
context:
space:
mode:
authoromnom62 <75066712+omnom62@users.noreply.github.com>2026-08-22 01:04:18 +1000
committerGitHub <noreply@github.com>2026-08-21 10:04:18 -0500
commitcb738721c15ac01f49f66144dae80eb478331f77 (patch)
tree52f870ed414506aaa5cd6efa7ae6513d807e194b /plugins/modules/vyos_logging_global.py
parent885b9462480712210ddeea9ca4a4b7a52e9ef587 (diff)
downloadrest.vyos-cb738721c15ac01f49f66144dae80eb478331f77.tar.gz
rest.vyos-cb738721c15ac01f49f66144dae80eb478331f77.zip
T8989: wave 2 modules: interfaces, l3_interfaces, lag_interfaces, lldp_interfaces, ospfv2/3, ospf_interfaces
* T8989: vyos_interfaces * T8989: vyos_interfaces changelog * T8989: vyos_interfaces changelog * T8989: changelog typo * T8989: vyos_l3_interfaces module * T8989: vyos_l3_interfaces module SIT and UAT * T8989: vyos_l3_interfaces doc * T8989: lag_interfaces * T8989: lag interfaces * T8989: lldp_interfaces * T8989: lldp_interfaces module * T8989: SIT updated * T8989: SIT updated * T8989: SIT updated * T8989: typo fixes * T8989: SIT and UAT updates * T8989: ospf_v3 module * T8989: ospf_v3 module * T8989: vyos_ospf_interfaces * T8989: vyos_ospf_interfaces SIT * T8989: vyos_ospf_interfaces SIT * T8989: vyos_ospfv3 SIT and UAT --------- Co-authored-by: John Estabrook <jestabro@vyos.io>
Diffstat (limited to 'plugins/modules/vyos_logging_global.py')
-rw-r--r--plugins/modules/vyos_logging_global.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/modules/vyos_logging_global.py b/plugins/modules/vyos_logging_global.py
index 09fdd6b..f18ba3f 100644
--- a/plugins/modules/vyos_logging_global.py
+++ b/plugins/modules/vyos_logging_global.py
@@ -305,7 +305,7 @@ def normalize_running(raw):
for f, data in raw.get("console", {}).get("facility", {}).items():
result["console"]["facilities"][f] = data.get("level")
- g = raw.get("global", {})
+ g = raw.get("local", {})
for f, data in g.get("facility", {}).items():
result["global"]["facilities"][f] = data.get("level")
if "archive" in g:
@@ -315,7 +315,7 @@ def normalize_running(raw):
if "preserve-fqdn" in g:
result["global"]["preserve_fqdn"] = True
- for host, data in raw.get("host", {}).items():
+ for host, data in raw.get("remote", {}).items():
h = {"port": data.get("port"), "facilities": {}}
for f, fd in data.get("facility", {}).items():
h["facilities"][f] = {
@@ -402,7 +402,7 @@ def build_commands(want, have, state):
)
cmds += diff_facilities(
- ["system", "syslog", "global"],
+ ["system", "syslog", "local"],
want["global"]["facilities"],
have["global"]["facilities"],
state,
@@ -416,7 +416,7 @@ def build_commands(want, have, state):
)
cmds += diff_map(
- ["system", "syslog", "host"],
+ ["system", "syslog", "remote"],
want["hosts"],
have["hosts"],
state,