Add wireguard interface and peers (#143)

* Add wireguard interface and peers

* Add changelog fragment
This commit is contained in:
Andrei Costescu 2022-12-27 21:41:42 +01:00 committed by GitHub
parent 8e3b19759d
commit 62da7dd4e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_modify, api_info - support API paths ``interface wireguard``, ``interface wireguard peers`` (https://github.com/ansible-collections/community.routeros/pull/143).

View file

@ -1150,6 +1150,33 @@ PATHS = {
'verify-client-certificate': KeyInfo(default='no'), 'verify-client-certificate': KeyInfo(default='no'),
}, },
), ),
('interface', 'wireguard'): APIData(
fully_understood=True,
primary_keys=('name', ),
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'listen-port': KeyInfo(),
'mtu': KeyInfo(default=1420),
'name': KeyInfo(),
'private-key': KeyInfo(),
},
),
('interface', 'wireguard', 'peers'): APIData(
fully_understood=True,
primary_keys=('public-key', 'interface'),
fields={
'allowed-address': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'endpoint-address': KeyInfo(),
'endpoint-port': KeyInfo(default=0),
'interface': KeyInfo(),
'persistent-keepalive': KeyInfo(),
'preshared-key': KeyInfo(),
'public-key': KeyInfo(),
},
),
('interface', 'wireless', 'align'): APIData( ('interface', 'wireless', 'align'): APIData(
single_value=True, single_value=True,
fully_understood=True, fully_understood=True,

View file

@ -75,6 +75,8 @@ options:
- interface sstp-server server - interface sstp-server server
- interface vlan - interface vlan
- interface vrrp - interface vrrp
- interface wireguard
- interface wireguard peers
- interface wireless align - interface wireless align
- interface wireless cap - interface wireless cap
- interface wireless sniffer - interface wireless sniffer

View file

@ -80,6 +80,8 @@ options:
- interface sstp-server server - interface sstp-server server
- interface vlan - interface vlan
- interface vrrp - interface vrrp
- interface wireguard
- interface wireguard peers
- interface wireless align - interface wireless align
- interface wireless cap - interface wireless cap
- interface wireless sniffer - interface wireless sniffer