Add '/interface ovpn-client' path (#244)

* Fixes #242: Add '/interface ovpn-client' path

* Add changelog fragment

* Update changelogs/fragments/244-add-interface-ovpn-client-path.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Johannes Münch <git@washiza.eu>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
derdeagle 2023-12-26 16:46:21 +01:00 committed by GitHub
parent a1492b4405
commit 4fff1f1bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 0 deletions

View file

@ -1413,6 +1413,35 @@ PATHS = {
},
),
),
('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,