Skip to content

Commit

Permalink
Add support for '/ip dhcp-relay' path (#276)
Browse files Browse the repository at this point in the history
* Add support for '/ip dhcp-relay' path

* add changelogs fragments
  • Loading branch information
vint2k authored Apr 18, 2024
1 parent 18deb0b commit c6be391
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/276-add_ip_dhcp-relay_path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add missing path ``/ip dhcp-relay`` (https://github.com/ansible-collections/community.routeros/pull/276).
16 changes: 16 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2579,6 +2579,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 @@ -121,6 +121,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 @@ -130,6 +130,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 c6be391

Please sign in to comment.