mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-08-01 16:54:43 +02:00
OVPN server accepts now multiple items (RouterOS >= 7.17) (#383)
* Since RouterOS 7.17 VRF is supported for OVPN server. It now supports multiple entries and single-value is now obsolete. This demands for a versioned API. * Add change fragment * Add change fragment * add license field * Update changelogs/fragments/385-vrf-support-for-ovpn-server Co-authored-by: Felix Fontein <felix@fontein.de> * rename * remove license field --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
008b5f893a
commit
c9d15bc43a
2 changed files with 47 additions and 17 deletions
7
changelogs/fragments/385-vrf-support-for-ovpn-server.yml
Normal file
7
changelogs/fragments/385-vrf-support-for-ovpn-server.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
minor_changes:
|
||||
- api_info, api_modify - since RouterOS 7.17 VRF is supported for OVPN server.
|
||||
It now supports multiple entries, while ``api_modify`` so far only accepted a single entry.
|
||||
The ``interface ovpn-server server`` path now allows multiple entries
|
||||
on RouterOS 7.17 and newer
|
||||
(https://github.com/ansible-collections/community.routeros/pull/383).
|
|
@ -1664,23 +1664,46 @@ PATHS = {
|
|||
),
|
||||
),
|
||||
('interface', 'ovpn-server', 'server'): APIData(
|
||||
unversioned=VersionedAPIData(
|
||||
single_value=True,
|
||||
fully_understood=True,
|
||||
fields={
|
||||
'auth': KeyInfo(),
|
||||
'cipher': KeyInfo(),
|
||||
'default-profile': KeyInfo(default='default'),
|
||||
'enabled': KeyInfo(default=False),
|
||||
'keepalive-timeout': KeyInfo(default=60),
|
||||
'mac-address': KeyInfo(),
|
||||
'max-mtu': KeyInfo(default=1500),
|
||||
'mode': KeyInfo(default='ip'),
|
||||
'netmask': KeyInfo(default=24),
|
||||
'port': KeyInfo(default=1194),
|
||||
'require-client-certificate': KeyInfo(default=False),
|
||||
},
|
||||
),
|
||||
versioned=[
|
||||
('7.17', '>=', VersionedAPIData(
|
||||
fully_understood=True,
|
||||
fields={
|
||||
'auth': KeyInfo(),
|
||||
'cipher': KeyInfo(),
|
||||
'default-profile': KeyInfo(default='default'),
|
||||
'enabled': KeyInfo(default=False),
|
||||
'keepalive-timeout': KeyInfo(default=60),
|
||||
'mac-address': KeyInfo(),
|
||||
'max-mtu': KeyInfo(default=1500),
|
||||
'mode': KeyInfo(default='ip'),
|
||||
'name': KeyInfo(default=''),
|
||||
'netmask': KeyInfo(default=24),
|
||||
'port': KeyInfo(default=1194),
|
||||
'protocol': KeyInfo(default='tcp'),
|
||||
'require-client-certificate': KeyInfo(default=False),
|
||||
'vrf': KeyInfo(default='main'),
|
||||
},
|
||||
)),
|
||||
('7.17', '<', VersionedAPIData(
|
||||
single_value=True,
|
||||
fully_understood=True,
|
||||
fields={
|
||||
'auth': KeyInfo(),
|
||||
'cipher': KeyInfo(),
|
||||
'default-profile': KeyInfo(default='default'),
|
||||
'enabled': KeyInfo(default=False),
|
||||
'keepalive-timeout': KeyInfo(default=60),
|
||||
'mac-address': KeyInfo(),
|
||||
'max-mtu': KeyInfo(default=1500),
|
||||
'mode': KeyInfo(default='ip'),
|
||||
'name': KeyInfo(default=''),
|
||||
'netmask': KeyInfo(default=24),
|
||||
'port': KeyInfo(default=1194),
|
||||
'protocol': KeyInfo(default='tcp'),
|
||||
'require-client-certificate': KeyInfo(default=False),
|
||||
},
|
||||
))
|
||||
]
|
||||
),
|
||||
('interface', 'pppoe-server', 'server'): APIData(
|
||||
unversioned=VersionedAPIData(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue