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

@ -1150,6 +1150,33 @@ PATHS = {
'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(
single_value=True,
fully_understood=True,