Skip to content

Commit

Permalink
Added support for 'ip dns forwarders' (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim427 authored Feb 18, 2025
1 parent 9e4b6c1 commit e302fed
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/343-add-ip-dns-forwarders.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``ip dns forwarders`` path implemented by RouterOS 7.17 and newer (https://github.com/ansible-collections/community.routeros/pull/343).
16 changes: 16 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2997,6 +2997,22 @@ def join_path(path):
)),
],
),
('ip', 'dns', 'forwarders'): APIData(
versioned=[
('7.17', '>=', VersionedAPIData(
fully_understood=True,
required_one_of=[['dns-servers', 'doh-servers']],
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'dns-servers': KeyInfo(default=''),
'doh-servers': KeyInfo(default=''),
'name': KeyInfo(required=True),
'verify-doh-cert': KeyInfo(default=True),
},
)),
],
),
('ip', 'dns', 'static'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
- ip dhcp-server option sets
- ip dns
- ip dns adlist
- ip dns forwarders
- ip dns static
- ip firewall address-list
- ip firewall connection tracking
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
- ip dhcp-server option sets
- ip dns
- ip dns adlist
- ip dns forwarders
- ip dns static
- ip firewall address-list
- ip firewall connection tracking
Expand Down

0 comments on commit e302fed

Please sign in to comment.