Role network-batman: update batman-ifaces due to fastd instance change
- update README.md
This commit is contained in:
parent
4732338cee
commit
e1e723809f
2 changed files with 15 additions and 1 deletions
|
@ -21,6 +21,19 @@ meshes:
|
||||||
gw: # string: gateway mode
|
gw: # string: gateway mode
|
||||||
mm: # boolean: multicast mode
|
mm: # boolean: multicast mode
|
||||||
dat: # boolean: distributed arp table
|
dat: # boolean: distributed arp table
|
||||||
|
hop_penalty: # integer: hop penalty
|
||||||
|
...
|
||||||
|
fastd:
|
||||||
|
nodes:
|
||||||
|
instances:
|
||||||
|
- id: 0 # integer
|
||||||
|
mtu: # integer
|
||||||
|
...
|
||||||
|
intragate:
|
||||||
|
instances:
|
||||||
|
- id: 0 # integer
|
||||||
|
mtu: # integer
|
||||||
|
...
|
||||||
|
|
||||||
´´´
|
´´´
|
||||||
- Host Variable `magic`
|
- Host Variable `magic`
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#jinja2: trim_blocks:False
|
||||||
{% set ip4hex = item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
{% set ip4hex = item.ipv4_network | ipaddr('net') | ipaddr(magic) | ipaddr('address') | ip4_hex() -%}
|
||||||
{% set mac = '0201' + ip4hex -%}
|
{% set mac = '0201' + ip4hex -%}
|
||||||
#
|
#
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
auto {{ item.id }}BAT
|
auto {{ item.id }}BAT
|
||||||
iface {{ item.id }}BAT
|
iface {{ item.id }}BAT
|
||||||
hwaddress {{ mac | hwaddr('linux') }}
|
hwaddress {{ mac | hwaddr('linux') }}
|
||||||
batman-ifaces {{ item.id }}0 {{ item.id }}VPN {{ item.id }}igVPN
|
batman-ifaces {{ item.id }}0 {% for instance in item.fastd.nodes.instances %}{{ item.id }}VPN-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %} {% for instance in item.fastd.intragate.instances %}{{ item.id }}igVPN-{{ instance.mtu }}{% if not loop.last %} {% endif %}{% endfor %}
|
||||||
batman-hop-penalty {{ item.batman.hop_penalty }}
|
batman-hop-penalty {{ item.batman.hop_penalty }}
|
||||||
post-up /usr/sbin/batctl -m $IFACE it {{ item.batman.it }}
|
post-up /usr/sbin/batctl -m $IFACE it {{ item.batman.it }}
|
||||||
post-up /usr/sbin/batctl -m $IFACE gw {{ item.batman.gw }}
|
post-up /usr/sbin/batctl -m $IFACE gw {{ item.batman.gw }}
|
||||||
|
|
Loading…
Reference in a new issue