Change default for ddns-enabled to "auto" for RouterOS 7.17 and newer (#350)

From the RouterOS 7.17 changelog:

> *) cloud - changed ddns-enabled setting from "no" to "auto" (service
> is enabled when BTH is enabled);

`no` is not supported anymore, only `yes` and `auto` are.
This commit is contained in:
hansmi 2025-03-13 07:08:14 +01:00 committed by GitHub
parent 30a79061f3
commit 8736996317
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - change default for ``/ip/cloud/ddns-enabled`` for RouterOS 7.17 and newer from ``yes`` to ``auto`` (https://github.com/ansible-collections/community.routeros/pull/350).

View file

@ -2777,8 +2777,11 @@ PATHS = {
unversioned=VersionedAPIData(
single_value=True,
fully_understood=True,
versioned_fields=[
([('7.17', '<')], 'ddns-enabled', KeyInfo(default=False)),
([('7.17', '>=')], 'ddns-enabled', KeyInfo(default='auto')),
],
fields={
'ddns-enabled': KeyInfo(default=False),
'ddns-update-interval': KeyInfo(default='none'),
'update-time': KeyInfo(default=True),
},