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

@ -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).

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( ('interface', 'ovpn-server', 'server'): APIData(
unversioned=VersionedAPIData( unversioned=VersionedAPIData(
single_value=True, single_value=True,

View file

@ -71,6 +71,7 @@ options:
- interface l2tp-server server - interface l2tp-server server
- interface list - interface list
- interface list member - interface list member
- interface ovpn-client
- interface ovpn-server server - interface ovpn-server server
- interface ppp-client - interface ppp-client
- interface pppoe-client - interface pppoe-client

View file

@ -80,6 +80,7 @@ options:
- interface l2tp-server server - interface l2tp-server server
- interface list - interface list
- interface list member - interface list member
- interface ovpn-client
- interface ovpn-server server - interface ovpn-server server
- interface ppp-client - interface ppp-client
- interface pppoe-client - interface pppoe-client