wip
This commit is contained in:
parent
ca52fc7b64
commit
55f5e2a8f7
2 changed files with 3 additions and 1 deletions
|
@ -39,6 +39,7 @@ def systemd_networkd_networks(metadata):
|
|||
'Route': {
|
||||
'Destination': str(ip_interface(metadata.get('wireguard/my_ip')).network),
|
||||
'GatewayOnlink': 'yes',
|
||||
'PreferredSource': str(ip_interface(metadata.get('network/internal/ipv4')).ip),
|
||||
},
|
||||
'Network': {
|
||||
'DHCP': 'no',
|
||||
|
@ -54,6 +55,7 @@ def systemd_networkd_networks(metadata):
|
|||
'Destination': route,
|
||||
'Gateway': str(ip_interface(repo.get_node(peer).metadata.get(f'wireguard/my_ip')).ip),
|
||||
'GatewayOnlink': 'yes',
|
||||
'PreferredSource': str(ip_interface(metadata.get('network/internal/ipv4')).ip),
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
'internal': {
|
||||
'interface': 'eth1',
|
||||
'ipv4': '10.0.11.2',
|
||||
'ipv4': '10.0.11.2/24',
|
||||
},
|
||||
},
|
||||
'wireguard': {
|
||||
|
|
Loading…
Reference in a new issue