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

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