Skip to content

Commit

Permalink
Add support for '/ip dhcp-relay' path
Browse files Browse the repository at this point in the history
  • Loading branch information
vint2k committed Apr 13, 2024
1 parent 8351bff commit 8872e35
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2557,6 +2557,22 @@ def join_path(path):
},
),
),
('ip', 'dhcp-relay'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
primary_keys=('name',),
fields={
'add-relay-info': KeyInfo(default=False),
'delay-threshold': KeyInfo(can_disable=True, remove_value='none'),
'dhcp-server': KeyInfo(required=True),
'disabled': KeyInfo(default=False),
'interface': KeyInfo(required=True),
'local-address': KeyInfo(can_disable=True, remove_value='0.0.0.0'),
'name': KeyInfo(),
'relay-info-remote-id': KeyInfo(),
},
),
),
('ip', 'dhcp-server', 'config'): APIData(
unversioned=VersionedAPIData(
single_value=True,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
- ip cloud advanced
- ip dhcp-client
- ip dhcp-client option
- ip dhcp-relay
- ip dhcp-server
- ip dhcp-server config
- ip dhcp-server lease
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
- ip cloud advanced
- ip dhcp-client
- ip dhcp-client option
- ip dhcp-relay
- ip dhcp-server
- ip dhcp-server config
- ip dhcp-server lease
Expand Down

0 comments on commit 8872e35

Please sign in to comment.