From 5adc664b04ae13c89648cb8fd2e3c1f646083c80 Mon Sep 17 00:00:00 2001 From: hansmi Date: Thu, 10 Oct 2024 21:43:30 +0200 Subject: [PATCH] Support DHCP matching type added in RouterOS 7.16 (#321) --- changelogs/fragments/321-dhcp-server-matcher-matching-type.yml | 2 ++ plugins/module_utils/_api_data.py | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/321-dhcp-server-matcher-matching-type.yml 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 0000000..78b8779 --- /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 05e1409..ae47274 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2798,6 +2798,9 @@ PATHS = { ('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),