diff --git a/changelogs/fragments/322-add-l2tp-client-interface-configuration.yml b/changelogs/fragments/322-add-l2tp-client-interface-configuration.yml new file mode 100644 index 0000000..0278458 --- /dev/null +++ b/changelogs/fragments/322-add-l2tp-client-interface-configuration.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support ``interface l2tp-client`` configuration (https://github.com/ansible-collections/community.routeros/pull/322). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 6ecfeee..a7985cf 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -1519,6 +1519,38 @@ PATHS = { }, ), ), + ('interface', 'l2tp-client',): APIData( + unversioned=VersionedAPIData( + primary_keys=('name', ), + single_value=False, + fully_understood=True, + fields={ + 'add-default-route': KeyInfo(default=False), + 'allow': KeyInfo(default='pap,chap,mschap1,mschap2'), + 'allow-fast-path': KeyInfo(default=False), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'connect-to': KeyInfo(required=True), + 'default-route-distance': KeyInfo(default=False), + 'dial-on-demand': KeyInfo(default=False), + 'disabled': KeyInfo(default=True), + 'ipsec-secret': KeyInfo(default=''), + 'keepalive-timeout': KeyInfo(default=60), + 'l2tp-proto-version': KeyInfo(default='l2tpv2'), + 'l2tpv3-cookie-length': KeyInfo(default=0), + 'l2tpv3-digest-hash': KeyInfo(default='md5'), + 'max-mru': KeyInfo(default=1450), + 'max-mtu': KeyInfo(default=1450), + 'mrru': KeyInfo(default='disabled'), + 'name': KeyInfo(required=True), + 'password': KeyInfo(), + 'profile': KeyInfo(default='default-encryption'), + 'src-address': KeyInfo(), + 'use-ipsec': KeyInfo(default=False), + 'use-peer-dns': KeyInfo(default=False), + 'user': KeyInfo(required=True), + }, + ), + ), ('interface', 'l2tp-server', 'server'): APIData( unversioned=VersionedAPIData( single_value=True, diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index a1d979f..829fc17 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -69,6 +69,7 @@ options: - interface ethernet switch port - interface gre - interface gre6 + - interface l2tp-client - interface l2tp-server server - interface list - interface list member diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 24732a1..4975dc4 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -78,6 +78,7 @@ options: - interface ethernet switch port - interface gre - interface gre6 + - interface l2tp-client - interface l2tp-server server - interface list - interface list member