diff --git a/changelogs/fragments/310-add-ip-dns-adlist.yml b/changelogs/fragments/310-add-ip-dns-adlist.yml new file mode 100644 index 00000000..3b96d8f6 --- /dev/null +++ b/changelogs/fragments/310-add-ip-dns-adlist.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support for the ``ip dns adlist`` path implemented by RouterOS 7.15 and newer (https://github.com/ansible-collections/community.routeros/pull/310). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index ebb9da53..a70cb2cf 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2818,6 +2818,22 @@ def join_path(path): }, ), ), + ('ip', 'dns', 'adlist'): APIData( + versioned=[ + ('7.15', '>=', VersionedAPIData( + fully_understood=True, + fields={ + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'file': KeyInfo(default=''), + 'match-count': KeyInfo(read_only=True), + 'name-count': KeyInfo(read_only=True), + 'ssl-verify': KeyInfo(default=True), + 'url': KeyInfo(default=''), + }, + )), + ], + ), ('ip', 'dns', 'static'): APIData( unversioned=VersionedAPIData( fully_understood=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 7110cdeb..296059d9 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -131,6 +131,7 @@ - ip dhcp-server option - ip dhcp-server option sets - ip dns + - ip dns adlist - ip dns static - ip firewall address-list - ip firewall connection tracking diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index e3525524..3261f5bc 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -140,6 +140,7 @@ - ip dhcp-server option - ip dhcp-server option sets - ip dns + - ip dns adlist - ip dns static - ip firewall address-list - ip firewall connection tracking