Skip to content

Commit

Permalink
Support name and is-responder properties on Wireguard peers
Browse files Browse the repository at this point in the history
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;
```
  • Loading branch information
hansmi committed Aug 2, 2024
1 parent 64ee613 commit 74f02d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/304-wireguard-name-responder.yml
Original file line number Diff line number Diff line change
@@ -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).
4 changes: 4 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,10 @@ def join_path(path):
'preshared-key': KeyInfo(can_disable=True, remove_value=''),
'public-key': KeyInfo(),
},
versioned_fields=[
([('7.15', '>=')], 'name', KeyInfo()),
([('7.15', '>=')], 'is-responder', KeyInfo()),
],
),
),
('interface', 'wireless'): APIData(
Expand Down

0 comments on commit 74f02d2

Please sign in to comment.