Skip to content

Commit

Permalink
DHCPv6 client: add new options from 7.15+
Browse files Browse the repository at this point in the history
* script
* custom-duid
* use-interface-duid
* validate-server-duid
  • Loading branch information
petrows committed Jan 26, 2025
1 parent 85d24d1 commit d136f8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add the ``use-interface-duid`` option for DHCPv6 client. 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)
8 changes: 8 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3544,6 +3544,14 @@ def join_path(path):
'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(
Expand Down

0 comments on commit d136f8b

Please sign in to comment.