Add support for the "ip dns adlist" path (#310)

Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/DNS#DNS-Adlist
This commit is contained in:
hansmi 2024-08-22 08:57:28 +02:00 committed by GitHub
parent 274e249f26
commit 6c2101d4d8
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 adlist`` path implemented by RouterOS 7.15 and newer (https://github.com/ansible-collections/community.routeros/pull/310).

View file

@ -2818,6 +2818,22 @@ PATHS = {
}, },
), ),
), ),
('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( ('ip', 'dns', 'static'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
fully_understood=True, fully_understood=True,

View file

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

View file

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