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

fix logic for batman interfaces on non gateways

parent 160276d0
No related branches found
No related tags found
No related merge requests found
Pipeline #43319 passed
......@@ -16,9 +16,9 @@ VPN: False
VPNProtocols: None
{%- endif %}
{%- for domain_key, domain_val in salt['pillar.get']('domains', {}).items()|sort %}
{%- for domain_key, domain_val in salt['pillar.get']('domains', {}).items() | sort %}
{%- set domain_id = domain_val['domain_id'] %}
[{{ domain_key }}-gw]
BatmanInterface: dom{{ domain_id }}-bat
Interfaces: dom{{ domain_id }}-bat, dom{{ domain_id }}-tp, dom{{ domain_id }}-peers-br
Interfaces: dom{{ domain_id }}-bat, dom{{ domain_id }}-tp{% if 'gateway' in salt['pillar.get']('roles', []) %}, dom{{ domain_id }}-peers-br{% endif %}
{%- endfor %}
......@@ -62,6 +62,7 @@ dom.service:
domain: {{ domain }}
domain_id: {{ domain_id }}
routing: {{ pillar['routing'] }}
{% endif %}
/etc/systemd/network/30-{{ domain }}-bat.netdev:
......@@ -109,6 +110,7 @@ dom.service:
vtep: {{ pillar['vtep'] }}
{% if 'gateway' in salt['pillar.get']('roles', []) %}
/etc/systemd/network/50-{{ domain }}-peers-br.netdev:
file.managed:
- source: salt://network/files/systemd/peers_bridge.netdev.j2
......
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