diff --git a/changelogs/fragments/244-add-interface-ovpn-client-path.yml b/changelogs/fragments/244-add-interface-ovpn-client-path.yml new file mode 100644 index 00000000..15dbcd94 --- /dev/null +++ b/changelogs/fragments/244-add-interface-ovpn-client-path.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add ``interface ovpn-client`` path (https://github.com/ansible-collections/community.routeros/issues/242, https://github.com/ansible-collections/community.routeros/pull/244). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 435e86ba..4c3e3116 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -1413,6 +1413,35 @@ def join_path(path): }, ), ), + ('interface', 'ovpn-client'): APIData( + unversioned=VersionedAPIData( + primary_keys=('name', ), + fully_understood=True, + fields={ + 'add-default-route': KeyInfo(default=False), + 'auth': KeyInfo(default='sha1'), + 'certificate': KeyInfo(), + 'cipher': KeyInfo(default='blowfish128'), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'connect-to': KeyInfo(), + 'disabled': KeyInfo(default=True), + 'disconnect-notify': KeyInfo(), + 'mac-address': KeyInfo(), + 'max-mtu': KeyInfo(default=1500), + 'mode': KeyInfo(default='ip'), + 'name': KeyInfo(), + 'password': KeyInfo(), + 'port': KeyInfo(default=1194), + 'profile': KeyInfo(default='default'), + 'protocol': KeyInfo(default='tcp'), + 'route-nopull': KeyInfo(default=False), + 'tls-version': KeyInfo(default='any'), + 'use-peer-dns': KeyInfo(default=True), + 'user': KeyInfo(), + 'verify-server-certificate': KeyInfo(default=False), + }, + ), + ), ('interface', 'ovpn-server', 'server'): APIData( unversioned=VersionedAPIData( single_value=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 2b5a2c90..4e28c725 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -71,6 +71,7 @@ - interface l2tp-server server - interface list - interface list member + - interface ovpn-client - interface ovpn-server server - interface ppp-client - interface pppoe-client diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 2b5229b6..fa7551eb 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -80,6 +80,7 @@ - interface l2tp-server server - interface list - interface list member + - interface ovpn-client - interface ovpn-server server - interface ppp-client - interface pppoe-client