From 331a97b12d745604253e802937c4de1b49736a1e Mon Sep 17 00:00:00 2001 From: samburney Date: Sat, 18 May 2024 23:29:49 +0930 Subject: [PATCH] Add support for 'ppp secret' path (#286) * Add support for 'ppp secret' path * Add changelog fragment --- .../fragments/286-add_ppp_secret_path.yml | 2 ++ plugins/module_utils/_api_data.py | 21 +++++++++++++++++++ plugins/modules/api_info.py | 1 + plugins/modules/api_modify.py | 1 + 4 files changed, 25 insertions(+) create mode 100644 changelogs/fragments/286-add_ppp_secret_path.yml diff --git a/changelogs/fragments/286-add_ppp_secret_path.yml b/changelogs/fragments/286-add_ppp_secret_path.yml new file mode 100644 index 0000000..4827fb6 --- /dev/null +++ b/changelogs/fragments/286-add_ppp_secret_path.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add missing path ``/ppp secret`` (https://github.com/ansible-collections/community.routeros/pull/286). \ No newline at end of file diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index cca6657..0883a2f 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -4600,6 +4600,27 @@ PATHS = { }, ), ), + ('ppp', 'secret'): APIData( + unversioned=VersionedAPIData( + fully_understood=True, + primary_keys=('name', ), + fields={ + 'caller-id': KeyInfo(default=''), + 'disabled': KeyInfo(default=False), + 'ipv6-routes': KeyInfo(default=''), + 'limit-bytes-in': KeyInfo(default=0), + 'limit-bytes-out': KeyInfo(default=0), + 'local-address': KeyInfo(can_disable=True), + 'name': KeyInfo(required=True), + 'password': KeyInfo(), + 'profile': KeyInfo(default='default'), + 'remote-address': KeyInfo(can_disable=True), + 'remote-ipv6-prefix': KeyInfo(can_disable=True), + 'routes': KeyInfo(can_disable=True), + 'service': KeyInfo(default='any'), + }, + ), + ), ('routing', 'bgp', 'aggregate'): APIData( unversioned=VersionedAPIData( primary_keys=('prefix',), diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index a3e800e..1d5dea5 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -186,6 +186,7 @@ options: - port remote-access - ppp aaa - ppp profile + - ppp secret - queue interface - queue simple - queue tree diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index cd5b3a9..73a08ef 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -195,6 +195,7 @@ options: - port remote-access - ppp aaa - ppp profile + - ppp secret - queue interface - queue simple - queue tree