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

@ -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(
unversioned=VersionedAPIData(
fully_understood=True,