From f9046d0e0a8f8cc2f67728265f92aef41587bf37 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Fri, 1 Sep 2023 19:33:48 +0200 Subject: [PATCH] Support "date", "time" and "gmt-offset" in "system clock" These properties are necessary to read and set the time as seen by RouterOS. Signed-off-by: Michael Hanselmann --- plugins/module_utils/_api_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 28ff4e53..9eac5ec3 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2551,6 +2551,9 @@ def join_path(path): single_value=True, fully_understood=True, fields={ + 'date': KeyInfo(), + 'gmt-offset': KeyInfo(), + 'time': KeyInfo(), 'time-zone-autodetect': KeyInfo(default=True), 'time-zone-name': KeyInfo(default='manual'), },