Add support for the "ip dhcp-server option" path (#223)

Make it possible to manage IPv4 DHCP server options.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-10-07 14:24:56 +02:00 committed by GitHub
parent efbc05ef73
commit 29a01ea240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``ip dhcp-server option`` and ``ip dhcp-server option sets`` paths (https://github.com/ansible-collections/community.routeros/pull/223).

View file

@ -1847,6 +1847,28 @@ PATHS = {
}, },
), ),
), ),
('ip', 'dhcp-server', 'option'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
primary_keys=('name',),
fields={
'code': KeyInfo(required=True),
'name': KeyInfo(),
'value': KeyInfo(default=''),
'force': KeyInfo(),
},
),
),
('ip', 'dhcp-server', 'option', 'sets'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
primary_keys=('name',),
fields={
'name': KeyInfo(required=True),
'options': KeyInfo(),
},
),
),
('ip', 'dns'): APIData( ('ip', 'dns'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
single_value=True, single_value=True,

View file

@ -99,6 +99,8 @@ options:
- ip dhcp-server config - ip dhcp-server config
- ip dhcp-server lease - ip dhcp-server lease
- ip dhcp-server network - ip dhcp-server network
- ip dhcp-server option
- ip dhcp-server option sets
- ip dns - ip dns
- ip dns static - ip dns static
- ip firewall address-list - ip firewall address-list

View file

@ -108,6 +108,8 @@ options:
- ip dhcp-server config - ip dhcp-server config
- ip dhcp-server lease - ip dhcp-server lease
- ip dhcp-server network - ip dhcp-server network
- ip dhcp-server option
- ip dhcp-server option sets
- ip dns - ip dns
- ip dns static - ip dns static
- ip firewall address-list - ip firewall address-list