bundles/wireguard: only try to do full mesh if *we* are doing full mesh

This commit is contained in:
Franzi 2023-09-24 18:55:29 +02:00
parent 53ff288d89
commit 0e40b03060
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -42,6 +42,9 @@ if node.has_bundle('telegraf'):
def peers_auto_full_mesh(metadata): def peers_auto_full_mesh(metadata):
peers = {} peers = {}
if node.name not in repo.libs.s2s.WG_AUTOGEN_NODES:
return {}
for rnode in repo.libs.s2s.WG_AUTOGEN_NODES: for rnode in repo.libs.s2s.WG_AUTOGEN_NODES:
if rnode is None or rnode == node.name: if rnode is None or rnode == node.name:
continue continue