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 0000000..797e54e --- /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 d5ca137..57c9d8c 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2840,6 +2840,20 @@ PATHS = { }, ), ), + ('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 cb7da79..644a20c 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -149,6 +149,7 @@ options: - 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 4209297..0a056e9 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -158,6 +158,7 @@ options: - mpls - mpls ldp - port firmware + - port remote-access - ppp aaa - ppp profile - queue interface