Browse Source

modules: Use MTU value of batman underlay devices as default for batman_ifaces.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 6 years ago
parent
commit
db71830aab
1 changed files with 4 additions and 1 deletions
  1. 4 1
      _modules/ffho_net.py

+ 4 - 1
_modules/ffho_net.py

@@ -537,7 +537,10 @@ def _generate_batman_interface_config (node_config, ifaces, sites_config):
 				else:
 					batman_ifaces += ' ' + iface
 
-			_set_mtu_to_iface_and_upper (ifaces, iface, MTU['batman_underlay_iface'])
+			# Use the MTU configured for this interface or, if none is set,
+			# the default value for batman underlay iface.
+			mtu = config.get('mtu', MTU['batman_underlay_iface'])
+			_set_mtu_to_iface_and_upper (ifaces, iface, mtu)
 
 
 #