From: Ian Jackson Date: Tue, 25 Apr 2017 14:34:13 +0000 (+0100) Subject: ensure mtu is in the ipif substitution set X-Git-Tag: hippotat/1.0.0~55^2~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=a14782d3bb7fe3e65f19e45d913d2e5f5d8662bb;ds=sidebyside ensure mtu is in the ipif substitution set Signed-off-by: Ian Jackson --- diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index 2fa3008..de939c8 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -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)