diff --git a/changelogs/fragments/245-add-radius-path.yml b/changelogs/fragments/245-add-radius-path.yml new file mode 100644 index 00000000..47572fd4 --- /dev/null +++ b/changelogs/fragments/245-add-radius-path.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add ``radius`` path (https://github.com/ansible-collections/community.routeros/issues/241, https://github.com/ansible-collections/community.routeros/pull/245). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 64bace42..c0cdb814 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -3228,6 +3228,28 @@ def join_path(path): }, ), ), + ('radius', ): APIData( + unversioned=VersionedAPIData( + fully_understood=True, + fields={ + 'accounting-backup': KeyInfo(default=False), + 'accounting-port': KeyInfo(default=1813), + 'address': KeyInfo(default='0.0.0.0'), + 'authentication-port': KeyInfo(default=1812), + 'called-id': KeyInfo(), + 'certificate': KeyInfo(), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'domain': KeyInfo(), + 'protocol': KeyInfo(default='udp'), + 'realm': KeyInfo(), + 'secret': KeyInfo(), + 'service': KeyInfo(), + 'src-address': KeyInfo(default='0.0.0.0'), + 'timeout': KeyInfo(default='300ms'), + }, + ), + ), ('radius', 'incoming'): APIData( unversioned=VersionedAPIData( single_value=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 26093731..53779989 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -168,6 +168,7 @@ - ppp profile - queue interface - queue tree + - radius - radius incoming - routing bgp connection - routing bgp instance diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 8bd01e56..afc58cd5 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -177,6 +177,7 @@ - ppp profile - queue interface - queue tree + - radius - radius incoming - routing bgp connection - routing bgp instance