Skip to content

Commit

Permalink
Add support for "user settings"
Browse files Browse the repository at this point in the history
The `user settings` path contains settings related to passwords.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
  • Loading branch information
hansmi committed Aug 18, 2023
1 parent 3b127b1 commit f8f5a83
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/201-add-user-settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``user settings`` path (https://github.com/ansible-collections/community.routeros/pull/201).
8 changes: 8 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2594,6 +2594,14 @@ def join_path(path):
'use-radius': KeyInfo(default=False),
},
),
('user', 'settings'): APIData(
single_value=True,
fully_understood=True,
fields={
'minimum-categories': KeyInfo(),
'minimum-password-length': KeyInfo(),
},
),
('queue', 'interface'): APIData(
primary_keys=('interface', ),
fully_understood=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 @@ -187,6 +187,7 @@
- tool traffic-generator
- user aaa
- user group
- user settings
# END PATH LIST
unfiltered:
description:
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 @@ -192,6 +192,7 @@
- tool traffic-generator
- user aaa
- user group
- user settings
# END PATH LIST
data:
description:
Expand Down

0 comments on commit f8f5a83

Please sign in to comment.