diff --git a/changelogs/fragments/297-add-ip-ssh-host-key-type.yml b/changelogs/fragments/297-add-ip-ssh-host-key-type.yml new file mode 100644 index 0000000..96038b1 --- /dev/null +++ b/changelogs/fragments/297-add-ip-ssh-host-key-type.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add parameter ``host-key-type`` for ``ip ssh`` path (https://github.com/ansible-collections/community.routeros/issues/280, https://github.com/ansible-collections/community.routeros/pull/297). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index ac9cf1b..061846f 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -3205,6 +3205,9 @@ PATHS = { unversioned=VersionedAPIData( single_value=True, fully_understood=True, + versioned_fields=[ + ([('7.9', '>=')], 'host-key-type', KeyInfo(default='rsa')), + ], fields={ 'allow-none-crypto': KeyInfo(default=False), 'always-allow-password-login': KeyInfo(default=False),