ansible-ffibk/roles/network-batman
2018-09-18 14:28:25 +02:00
..
handlers Handlers: move all handlers into their roles, again 2018-03-01 06:34:55 +01:00
tasks Migrate all with_* loops to new loop directive 2018-09-18 14:27:58 +02:00
templates Role network-batman: deactivate batman gw mode for non gateways 2018-09-18 14:28:25 +02:00
README.md update READMEs 2018-09-18 12:48:09 +02:00

Ansible role network-batman

Diese Ansible role konfiguriert batman-adv Netzwerk Interfaces.

  • dummy interface pro mesh
  • batman-adv interface pro mesh
  • konfiguriert sysfs variablen:
    • Hop Penalty pro batman-adv interface

Benötigte Variablen

  • Dictionary meshes
meshes:
  - id: xx
...
    ipv4_network:
...
    batman:
      it: # integer: originator interval
      gw: # string: gateway mode
      mm: # boolean: multicast mode
      dat: # boolean: distributed arp table
      hop_penalty: # integer: hop penalty
...
    fastd:
      nodes:
        instances:
          - id: 0 # integer
            mtu: # integer
          ...
      backbone:
        instances:
          - id: 0 # integer
            mtu: # integer
          ...

  • Host Variable magic

  • Host Variable ffmwu_server_type

MAC-Adressen

Die MAC-Adressen der Interfaces werden aus dem IPv4-Subnetz sowie der magic-Nummer des Hosts berechnet.

xx0-prefix: 02:00 xxbat-prefix: 02:01