diff --git a/changelogs/fragments/321-dhcp-server-matcher-matching-type.yml b/changelogs/fragments/321-dhcp-server-matcher-matching-type.yml new file mode 100644 index 000000000..78b877988 --- /dev/null +++ b/changelogs/fragments/321-dhcp-server-matcher-matching-type.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support for the ``matching-type`` property in ``ip dhcp-server matcher`` introduced by RouterOS 7.16 (https://github.com/ansible-collections/community.routeros/pull/321). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 05e14091b..ae47274c1 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2798,6 +2798,9 @@ def join_path(path): ('7.4', '>=', VersionedAPIData( fully_understood=True, primary_keys=('name', ), + versioned_fields=[ + ([('7.16', '>=')], 'matching-type', KeyInfo()), + ], fields={ 'address-pool': KeyInfo(default='none'), 'code': KeyInfo(required=True),