From f9c09d6bafe362ae501cf3eeb8f940afd367011e Mon Sep 17 00:00:00 2001 From: liquorice-head <40302350+liquorice-head@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:07:37 +0400 Subject: [PATCH] Update _api_data.py --- plugins/module_utils/_api_data.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 05e1409..9e95ea8 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -1540,6 +1540,37 @@ PATHS = { }, ), ), + ('interface', 'l2tp-client',): APIData( + unversioned=VersionedAPIData( + 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(), + '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(), + 'password': KeyInfo(), + 'profile': KeyInfo(default='default-encryption'), + 'src-address': KeyInfo(), + 'use-ipsec': KeyInfo(default=False), + 'use-peer-dns': KeyInfo(default=False), + 'user': KeyInfo(), + }, + ), + ), ('interface', 'ovpn-client'): APIData( unversioned=VersionedAPIData( primary_keys=('name', ),