wip
This commit is contained in:
parent
ca5eb9d50b
commit
40254b403e
1 changed files with 0 additions and 8 deletions
|
@ -43,19 +43,11 @@ def systemd_networkd_networks(metadata):
|
||||||
'Network': {
|
'Network': {
|
||||||
'DHCP': 'no',
|
'DHCP': 'no',
|
||||||
'IPForward': 'yes',
|
'IPForward': 'yes',
|
||||||
#'IPMasquerade': 'yes',
|
|
||||||
'IPv6AcceptRA': 'no',
|
'IPv6AcceptRA': 'no',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for peer, config in metadata.get('wireguard/peers').items():
|
for peer, config in metadata.get('wireguard/peers').items():
|
||||||
# network.update({
|
|
||||||
# f'Route#{peer}': {
|
|
||||||
# 'Destination': str(ip_interface(repo.get_node(peer).metadata.get(f'wireguard/my_ip')).ip),
|
|
||||||
# 'Gateway': str(ip_interface(metadata.get('wireguard/my_ip')).ip),
|
|
||||||
# 'GatewayOnlink': 'yes',
|
|
||||||
# }
|
|
||||||
# })
|
|
||||||
for route in config.get('route', []):
|
for route in config.get('route', []):
|
||||||
network.update({
|
network.update({
|
||||||
f'Route#{peer}_{route}': {
|
f'Route#{peer}_{route}': {
|
||||||
|
|
Loading…
Reference in a new issue