chiark / gitweb /
ensure mtu is in the ipif substitution set
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 25 Apr 2017 14:34:13 +0000 (15:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 25 Apr 2017 14:34:13 +0000 (15:34 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatlib/__init__.py

index 2fa3008..de939c8 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)
+  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)