chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13eca8
)
config: Make c.mtu always be an integer, not a string
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 18 Jun 2019 17:39:00 +0000
(18:39 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 18 Jun 2019 17:39:00 +0000
(18:39 +0100)
We are going to want to use this other than just to feed to ipif.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatlib/__init__.py
patch
|
blob
|
history
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index dad12b2905434b59380f01f38fbdc8069a8ead3f..6c60eefc9cd410453d741ab047db0041ec00b099 100644
(file)
--- 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
.ge
t, d, sections)
+ v = cfg_search(cfg
1getin
t, d, sections)
setattr(c, d, v)
#print('CFGIPIF',repr((varmap, sections, c.__dict__)),file=sys.stderr)