From cccb1e006f634989f36e93dee1d4ba4015e32ab8 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Wed, 20 Sep 2023 21:31:13 +0200 Subject: [PATCH] Add support for the "port remote-access" path Signed-off-by: Michael Hanselmann --- .../fragments/224-add-port-remote-access.yml | 2 ++ plugins/module_utils/_api_data.py | 14 ++++++++++++++ plugins/modules/api_info.py | 1 + plugins/modules/api_modify.py | 1 + 4 files changed, 18 insertions(+) create mode 100644 changelogs/fragments/224-add-port-remote-access.yml diff --git a/changelogs/fragments/224-add-port-remote-access.yml b/changelogs/fragments/224-add-port-remote-access.yml new file mode 100644 index 00000000..797e54e8 --- /dev/null +++ b/changelogs/fragments/224-add-port-remote-access.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support for the ``port remote-access`` path (https://github.com/ansible-collections/community.routeros/pull/224). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 32f24480..5a71f964 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2818,6 +2818,20 @@ def join_path(path): }, ), ), + ('port', 'remote-access'): APIData( + unversioned=VersionedAPIData( + fully_understood=True, + fields={ + 'allowed-addresses': KeyInfo(default='0.0.0.0/0'), + 'channel': KeyInfo(default=0), + 'disabled': KeyInfo(default=False), + 'log-file': KeyInfo(default=""), + 'port': KeyInfo(required=True), + 'protocol': KeyInfo(default='rfc2217'), + 'tcp-port': KeyInfo(default=0), + }, + ), + ), ('ppp', 'aaa'): APIData( unversioned=VersionedAPIData( single_value=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 048f4344..94659e6a 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -147,6 +147,7 @@ - mpls - mpls ldp - port firmware + - port remote-access - ppp aaa - ppp profile - queue interface diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 352f843a..68973370 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -156,6 +156,7 @@ - mpls - mpls ldp - port firmware + - port remote-access - ppp aaa - ppp profile - queue interface