diff --git a/changelogs/fragments/211-user.yml b/changelogs/fragments/211-user.yml new file mode 100644 index 00000000..e6bc29b0 --- /dev/null +++ b/changelogs/fragments/211-user.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support for the ``user`` path (https://github.com/ansible-collections/community.routeros/pull/211). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index e581bc40..0885858d 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -3282,6 +3282,20 @@ def join_path(path): }, ), ), + ('user',): APIData( + unversioned=VersionedAPIData( + primary_keys=('name', ), + fully_understood=True, + fields={ + 'address': KeyInfo(), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'group': KeyInfo(), + 'name': KeyInfo(), + 'password': KeyInfo(write_only=True), + }, + ), + ), ('user', 'aaa'): APIData( unversioned=VersionedAPIData( single_value=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index eca87d2a..048f4344 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -195,6 +195,7 @@ - tool sms - tool sniffer - tool traffic-generator + - user - user aaa - user group - user settings diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 39105166..352f843a 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -204,6 +204,7 @@ - tool sms - tool sniffer - tool traffic-generator + - user - user aaa - user group - user settings