Support "date", "time" and "gmt-offset" in "system clock" (#210)

These properties are necessary to read and set the time as seen by
RouterOS.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-09-01 22:02:11 +02:00 committed by GitHub
parent 38ac303f93
commit 1ed4690240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -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).

View file

@ -2551,6 +2551,9 @@ PATHS = {
single_value=True, single_value=True,
fully_understood=True, fully_understood=True,
fields={ fields={
'date': KeyInfo(),
'gmt-offset': KeyInfo(),
'time': KeyInfo(),
'time-zone-autodetect': KeyInfo(default=True), 'time-zone-autodetect': KeyInfo(default=True),
'time-zone-name': KeyInfo(default='manual'), 'time-zone-name': KeyInfo(default='manual'),
}, },