wip
This commit is contained in:
parent
ac5482335d
commit
6e9610d797
2 changed files with 3 additions and 3 deletions
|
@ -90,10 +90,10 @@ def systemd_networkd_netdevs(metadata):
|
|||
'Endpoint': config['endpoint'],
|
||||
'PublicKey': config['pubkey'],
|
||||
'PresharedKey': config['psk'],
|
||||
'AllowedIPs': ', '.join([
|
||||
'AllowedIPs': ', '.join(sorted([
|
||||
str(ip_interface(repo.get_node(peer).metadata.get(f'wireguard/my_ip')).ip),
|
||||
*config.get('route', []),
|
||||
]), # FIXME
|
||||
])), # FIXME
|
||||
'PersistentKeepalive': 30,
|
||||
}
|
||||
})
|
||||
|
|
|
@ -9,7 +9,7 @@ template = '''
|
|||
[${segment.split('#')[0]}]
|
||||
% for option, value in sorted(options.items()):
|
||||
% if isinstance(value, dict):
|
||||
% for k, v in value.items():
|
||||
% for k, v in sorted(value.items()):
|
||||
${option}=${k}=${v}
|
||||
% endfor
|
||||
% elif isinstance(value, (list, set, tuple)):
|
||||
|
|
Loading…
Reference in a new issue