]> git.proxmox.com Git - mirror_ifupdown2.git/commit
Add addon module for B.A.T.M.A.N. advanced interface configuration. #12
authorMaximilian Wilhelm <max@rfc2324.org>
Wed, 19 Dec 2018 06:07:42 +0000 (07:07 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Wed, 19 Dec 2018 06:12:58 +0000 (07:12 +0100)
commitb1a2d2417b5b1acd51a1db1a92cc1fc7197b4319
tree918ec9e9d21c8946ed251f61b87ca40667c0d245
parent6039c4d7782fb7d64560d580df4ffa3df8c128a9
Add addon module for B.A.T.M.A.N. advanced interface configuration. #12

batman wasn't in master-next so it got removed during the last merge
this commit adds it back to master.
See PR #12

From Maximilian Wilhelm:
  This commit adds support for configuring B.A.T.M.A.N. advanced interfaces
  with ifupdown2. B.A.T.M.A.N. advanced is a protocol to build Layer2 based
  mesh networks with. It's supported in the Linux kernel and thus available
  in many Linux environments.

  A configuration could look like this

  auto bat0
  iface bat0
      batman-ifaces eth1 eth2.23
      batman-ifaces-ignore-regex .*_nodes
      batman-hop-penalty 23
      #
      address 192.0.2.42/24

  where »bat0« would be the local connection to the mesh network.

  The interfaces »eth1« and »eth2.23« would be used by the B.A.T.M.A.N. adv.
  protocol to communicate to other member of the mesh network.

  Any interfaces matching the »ifaces-ignore-regex« will be gently ignored
  by ifquery and ifreload as there might be some tunnels or interfaces
  added to the mesh network by other means which should not be removed by
  any subsequent ifreload run.

  The »hop-penalty» parameter set the penalty of this node within the mesh
  network.

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Author: Maximilian Wilhelm <max@rfc2324.org>
docs/examples/batman_adv/configure_batman_adv.sh [new file with mode: 0755]
docs/examples/batman_adv/interfaces_batman [new file with mode: 0644]
etc/network/ifupdown2/addons.conf
ifupdown2/addons/batman_adv.py [new file with mode: 0644]
ifupdown2/ifupdown/iface.py