mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-26 11:48:42 +02:00
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:
parent
efbc05ef73
commit
29a01ea240
4 changed files with 28 additions and 0 deletions
2
changelogs/fragments/223-add-ip-dhcp-server-option.yml
Normal file
2
changelogs/fragments/223-add-ip-dhcp-server-option.yml
Normal 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).
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue