Skip to content

Commit

Permalink
Support "date", "time" and "gmt-offset" in "system clock"
Browse files Browse the repository at this point in the history
These properties are necessary to read and set the time as seen by
RouterOS.

Signed-off-by: Michael Hanselmann <[email protected]>
  • Loading branch information
hansmi committed Sep 1, 2023
1 parent 38ac303 commit a0e3a79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/210-date-time-gmt-offset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for ``user``, ``time`` and ``gmt-offset`` under the ``system clock`` path (https://github.com/ansible-collections/community.routeros/pull/210).
3 changes: 3 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
Expand Down

0 comments on commit a0e3a79

Please sign in to comment.