Support name and is-responder properties on Wireguard peers (#304)

From the RouterOS 7.15 changelog:

```
*) wireguard - added option to mark peer as responder only;
*) wireguard - added peer "name" field and display it in logs;
```
This commit is contained in:
hansmi 2024-08-05 20:46:28 +02:00 committed by GitHub
parent 64ee613a0d
commit 6986e2fc25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``name`` and ``is-responder`` properties under the ``interface wireguard peers`` path introduced in RouterOS 7.15 (https://github.com/ansible-collections/community.routeros/pull/304).

View file

@ -2340,6 +2340,10 @@ PATHS = {
'preshared-key': KeyInfo(can_disable=True, remove_value=''), 'preshared-key': KeyInfo(can_disable=True, remove_value=''),
'public-key': KeyInfo(), 'public-key': KeyInfo(),
}, },
versioned_fields=[
([('7.15', '>=')], 'name', KeyInfo()),
([('7.15', '>=')], 'is-responder', KeyInfo()),
],
), ),
), ),
('interface', 'wireless'): APIData( ('interface', 'wireless'): APIData(