mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-20 17:15:46 +02:00
Added support for 'ip dns forwarders' (#343)
This commit is contained in:
parent
9e4b6c197d
commit
e302fed6cf
4 changed files with 20 additions and 0 deletions
2
changelogs/fragments/343-add-ip-dns-forwarders.yml
Normal file
2
changelogs/fragments/343-add-ip-dns-forwarders.yml
Normal 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).
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue