ansible-ffibk/roles/network-batman
Julian Labus f81bbfed65 Role network-meshbridge: update workaround to set hwaddress
`pre-up` doesn't work properly as it is called before the bridge is created.
Initializing the bridge via `up` in the batman mesh interface seems to be a better solution.
2018-02-02 06:38:06 +01:00
..
tasks Lowercase all network interface names 2017-11-06 21:24:56 +01:00
templates Role network-meshbridge: update workaround to set hwaddress 2018-02-02 06:38:06 +01:00
README.md Lowercase all network interface names 2017-11-06 21:24:56 +01: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 ... intragate: instances: - id: 0 # integer mtu: # integer ...

´´´

  • Host Variable magic

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