Skip to content

Commit

Permalink
Fixes #242: Add '/interface ovpn-client' path
Browse files Browse the repository at this point in the history
  • Loading branch information
derdeagle committed Dec 25, 2023
1 parent a1492b4 commit 732ac4e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
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 732ac4e

Please sign in to comment.