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 12, 2024
1 parent 8351bff commit fc8689d
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 @@ -787,6 +787,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(),
},
),
),
('routing', 'filter', 'rule'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
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 @@ -126,6 +126,7 @@
- ip dhcp-server network
- ip dhcp-server option
- ip dhcp-server option sets
- ip dhcp-relay
- ip dns
- ip dns static
- ip firewall address-list
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 @@ -135,6 +135,7 @@
- ip dhcp-server network
- ip dhcp-server option
- ip dhcp-server option sets
- ip dhcp-relay
- ip dns
- ip dns static
- ip firewall address-list
Expand Down

0 comments on commit fc8689d

Please sign in to comment.