mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-08-06 03:05:08 +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(
|
('interface', 'ovpn-server', 'server'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
versioned=[
|
||||||
single_value=True,
|
('7.17', '>=', VersionedAPIData(
|
||||||
fully_understood=True,
|
fully_understood=True,
|
||||||
fields={
|
fields={
|
||||||
'auth': KeyInfo(),
|
'auth': KeyInfo(),
|
||||||
'cipher': KeyInfo(),
|
'cipher': KeyInfo(),
|
||||||
'default-profile': KeyInfo(default='default'),
|
'default-profile': KeyInfo(default='default'),
|
||||||
'enabled': KeyInfo(default=False),
|
'enabled': KeyInfo(default=False),
|
||||||
'keepalive-timeout': KeyInfo(default=60),
|
'keepalive-timeout': KeyInfo(default=60),
|
||||||
'mac-address': KeyInfo(),
|
'mac-address': KeyInfo(),
|
||||||
'max-mtu': KeyInfo(default=1500),
|
'max-mtu': KeyInfo(default=1500),
|
||||||
'mode': KeyInfo(default='ip'),
|
'mode': KeyInfo(default='ip'),
|
||||||
'netmask': KeyInfo(default=24),
|
'name': KeyInfo(default=''),
|
||||||
'port': KeyInfo(default=1194),
|
'netmask': KeyInfo(default=24),
|
||||||
'require-client-certificate': KeyInfo(default=False),
|
'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(
|
('interface', 'pppoe-server', 'server'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
unversioned=VersionedAPIData(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue