git://git.onelab.eu
/
pyplnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add DNS* settings for static configuration.
[pyplnet.git]
/
plnet.py
diff --git
a/plnet.py
b/plnet.py
index
8e61769
..
a9a868f
100755
(executable)
--- a/
plnet.py
+++ b/
plnet.py
@@
-62,6
+62,8
@@
def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa
inter['BOOTPROTO'] = "static"
inter['IPADDR'] = network['ip']
inter['NETMASK'] = network['netmask']
+ inter['DNS1'] = network['dns1']
+ inter['DNS2'] = network['dns2']
if network['is_primary']:
gateway = network['gateway']