pybatmesh/systemd-networkd/mesh.01-batman.netdev
Pranav Jerry d0389e5638
set gateway mode automatically
Added arg and config option to manually set gw_mode.
When gateway_mode is auto, a temporary config will be added, and after a
ten sec delay, naxalnet will check if systemd-networkd shows a
'routable' connection. If the connection is routable, gw_mode will be
set to server; or client otherwise.
2021-09-27 12:43:09 +05:30

11 lines
253 B
SYSTEMD

# Create the BATMAN interface
# See 04-batman.network for configuration details
[NetDev]
Name={batdev}
Description=BATMAN interface
Kind=batadv
# see man:systemd.netdev(5) § [BATMANADVANCED] SECTION OPTIONS
[BatmanAdvanced]
GatewayMode={gateway_mode}