Added support for 'ip dns forwarders' (#343)

This commit is contained in:
Tim de Boer 2025-02-18 20:25:40 +00:00 committed by GitHub
parent 9e4b6c197d
commit e302fed6cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 0 deletions

View file

@ -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).

View file

@ -2997,6 +2997,22 @@ PATHS = {
)),
],
),
('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,

View file

@ -136,6 +136,7 @@ options:
- ip dhcp-server option sets
- ip dns
- ip dns adlist
- ip dns forwarders
- ip dns static
- ip firewall address-list
- ip firewall connection tracking

View file

@ -147,6 +147,7 @@ options:
- ip dhcp-server option sets
- ip dns
- ip dns adlist
- ip dns forwarders
- ip dns static
- ip firewall address-list
- ip firewall connection tracking