Skip to content

Commit

Permalink
Add '/interface ovpn-client' path (#244)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

---------

Co-authored-by: Johannes Münch <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
3 people authored Dec 26, 2023
1 parent a1492b4 commit 4fff1f1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/244-add-interface-ovpn-client-path.yml
Original file line number Diff line number Diff line change
@@ -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).
29 changes: 29 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fff1f1

Please sign in to comment.