chiark / gitweb /
ensure mtu is in the ipif substitution set
[hippotat.git] / hippotatlib / __init__.py
index 2fa300831e6bc186edf165c5b12eef7ed2d4e3f7..de939c86b09621dbddb7c5f1445ad1bf4ed4b717 100644 (file)
@@ -577,6 +577,9 @@ def cfg_process_ipif(c, sections, varmap):
     try: v = getattr(c, s)
     except AttributeError: continue
     setattr(c, d, v)
     try: v = getattr(c, s)
     except AttributeError: continue
     setattr(c, d, v)
+  for d in ('mtu',):
+    v = cfg_search(cfg.get, d, sections)
+    setattr(c, d, v)
 
   #print('CFGIPIF',repr((varmap, sections, c.__dict__)),file=sys.stderr)
 
 
   #print('CFGIPIF',repr((varmap, sections, c.__dict__)),file=sys.stderr)