ansible/roles/mesh-interfaces/templates/mesh.conf.j2

44 lines
1.1 KiB
Django/Jinja

# {{ ansible_managed }}
# br-{{ site_code }}
auto br-{{ site_code }}
iface br-{{ site_code }}
mtu 1500
#
#bridge-fd 0
bridge-ports bat-{{ site_code }}
bridge-stp no
#
address {{ batman_ipv4 }}
address {{ batman_ipv6 }}
{% if global_ipv6 is defined %}
address {{ global_ipv6 }}
{% endif %}
# bat-{{ site_code }}
auto bat-{{ site_code }}
iface bat-{{ site_code }}
hwaddress f2:00:90:00:{{ gateway_id }}:20
mtu 1500
#
batman-hop-penalty 5
batman-ifaces dmy-{{ site_code }}
batman-ifaces-ignore-regex .*_.*
#
# TODO use batman-xyz instead of batctl
# see /usr/share/ifupdown2/addons/batman_adv.py
#
up /usr/sbin/batctl -m bat-{{ site_code }} gw_mode server 100000 100000
up /usr/sbin/batctl -m bat-{{ site_code }} it 5000
up /usr/sbin/batctl -m bat-{{ site_code }} multicast_mode 0
up /usr/sbin/batctl -m bat-{{ site_code }} ra {{ batman_algo }}
up echo 2 > /sys/class/net/bat-{{ site_code }}/brport/multicast_router
# dmy-{{ site_code }}
auto dmy-{{ site_code }}
iface dmy-{{ site_code }}
hwaddress f2:00:90:00:{{ gateway_id }}:00
link-type dummy
mtu 1560