Change default for ddns-enabled to "auto" for RouterOS 7.17 and newer

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:
Michael Hanselmann 2025-03-12 19:19:07 +01:00
parent be9a7ed3ad
commit 29d6f962de
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),
},