DHCPv6 client: add new options from 7.15+ (#341)

* script
* custom-duid
* use-interface-duid
* validate-server-duid
This commit is contained in:
Peter Petrovich 2025-01-26 12:34:43 +01:00 committed by GitHub
parent 85d24d180e
commit 575af30d88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add the ``use-interface-duid`` option for ``ipv6 dhcp-client`` path. This option prevents issues with Fritzbox modems and routers, when using virtual interfaces (like VLANs) may create duplicated records in hosts config, this breaks original "expose-host" function. Also add the ``script``, ``custom-duid`` and ``validate-server-duid`` as backport from 7.15 version update (https://github.com/ansible-collections/community.routeros/pull/341).

View file

@ -3544,6 +3544,14 @@ PATHS = {
'request': KeyInfo(),
'use-peer-dns': KeyInfo(default=True),
},
versioned_fields=[
# Mikrotik does not provide exact version in official changelogs.
# The 7.15 version is the earliest, found option in router config backups:
([('7.15', '>=')], 'script', KeyInfo(default='')),
([('7.15', '>=')], 'custom-duid', KeyInfo(default='')),
([('7.15', '>=')], 'use-interface-duid', KeyInfo(default=False)),
([('7.15', '>=')], 'validate-server-duid', KeyInfo(default=True)),
],
),
),
('ipv6', 'dhcp-server'): APIData(