prepared *.net{work,dev} files to work with str.format()

This commit is contained in:
Pranav Jerry 2021-09-26 13:31:36 +05:30
parent 25ac54dfad
commit 8f905ed970
No known key found for this signature in database
GPG Key ID: F1DCDC4FED0A0C5B
8 changed files with 12 additions and 11 deletions

View File

@ -35,4 +35,4 @@ See README.md for documentation.
# #
# In case you forgot to change the version, skip the number # In case you forgot to change the version, skip the number
# and put the next number in the next commit. # and put the next number in the next commit.
__version__ = "0.4.0a1" __version__ = "0.4.0a3"

View File

@ -1,7 +1,7 @@
# Create the BATMAN interface # Create the BATMAN interface
# See 04-batman.network for configuration details # See 04-batman.network for configuration details
[NetDev] [NetDev]
Name=bat0 Name={batdev}
Description=BATMAN interface Description=BATMAN interface
Kind=batadv Kind=batadv

View File

@ -2,7 +2,7 @@
# The batman interface be will later linked to this bridge. # The batman interface be will later linked to this bridge.
# See 07-bridge.network to see how this bridge is configured # See 07-bridge.network to see how this bridge is configured
[NetDev] [NetDev]
Name=bridge0 Name={bridgedev}
Description=Bridge Description=Bridge
Kind=bridge Kind=bridge

View File

@ -10,7 +10,7 @@ MTUBytes=1560
[Network] [Network]
Description=ad-hoc network connecting to other nodes Description=ad-hoc network connecting to other nodes
BatmanAdvanced=bat0 BatmanAdvanced={batdev}
# This interface should not have any IP addresses assigned. # This interface should not have any IP addresses assigned.
# IP will be given later to the bridge # IP will be given later to the bridge
DHCP=no DHCP=no

View File

@ -1,9 +1,9 @@
[Match] [Match]
Name=bat0 Name={batdev}
[Network] [Network]
Description=The BATMAN interface Description=The BATMAN interface
Bridge=bridge0 Bridge={bridgedev}
# like in 03-wireless-ad-hoc.network, this interface # like in 03-wireless-ad-hoc.network, this interface
# also shouldn't have IP address the address will # also shouldn't have IP address the address will

View File

@ -11,7 +11,7 @@ WLANInterfaceType=ap
Description=Wireless AP Description=Wireless AP
# link the interface to the bridge # link the interface to the bridge
Bridge=bridge0 Bridge={bridgedev}
# Like in the ad-hoc network and bat0, this interface # Like in the ad-hoc network and bat0, this interface
# should not have any ip address assigned to it. # should not have any ip address assigned to it.

View File

@ -5,4 +5,4 @@ Name=en*
Name=eth* Name=eth*
[Network] [Network]
Bridge=bridge0 Bridge={bridgedev}

View File

@ -3,13 +3,14 @@
# communicate with others devices # communicate with others devices
[Match] [Match]
Name=bridge0 Name={bridgedev}
[Network] [Network]
# use DHCP to assign an IP # Use DHCP to assign an IP
DHCP=yes DHCP=yes
# if DHCP fails, assign a random address # If DHCP fails, assign a random address. This is probably the default,
# but we are specifying it anyway.
LinkLocalAddressing=yes LinkLocalAddressing=yes
# LLMNR and MulticastDNS are used for hostname discovery # LLMNR and MulticastDNS are used for hostname discovery