Skip to content
Snippets Groups Projects
Commit accaf414 authored by skorpy's avatar skorpy :construction_worker:
Browse files

networkd/batman: fix context

parent 63e0911e
No related branches found
No related tags found
1 merge request!610move to systemd-networkd for gateways
......@@ -105,6 +105,7 @@ dom.service:
- context:
domain: {{ domain }}
domain_id: {{ domain_id }}
vtep: {{ pillar['vtep'] }}
/etc/systemd/network/50-{{ domain }}-peers-br.netdev:
......
......@@ -2,7 +2,7 @@
Kind=vxlan
Name={{ domain }}-tp
MTUBytes={{ salt['pillar.get']('domains:%s:mtu' | format(domain), 1312) }}
MACAddress={{ salt['net.vxlan_mac'](domain_id, host_id) }}
MACAddress={{ salt['net.vxlan_mac'](domain_id, salt['pillar.get']('host:id:primary')) }}
[VXLAN]
DestinationPort=4789
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment