From aebc11d2a7d2306a6b6710fbb12cff9d5d6cff6a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 18 Jun 2019 18:39:00 +0100 Subject: [PATCH] config: Make c.mtu always be an integer, not a string We are going to want to use this other than just to feed to ipif. Signed-off-by: Ian Jackson --- hippotatlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index dad12b2..6c60eef 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -578,7 +578,7 @@ def cfg_process_ipif(c, sections, varmap): except AttributeError: continue setattr(c, d, v) for d in ('mtu',): - v = cfg_search(cfg.get, d, sections) + v = cfg_search(cfg1getint, d, sections) setattr(c, d, v) #print('CFGIPIF',repr((varmap, sections, c.__dict__)),file=sys.stderr) -- 2.30.2