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
Make dhclient persistent, so transient network failures don't make nodes unreachable.
[pyplnet.git]
/
plnet.py
diff --git
a/plnet.py
b/plnet.py
index
c012067
..
c420203
100755
(executable)
--- a/
plnet.py
+++ b/
plnet.py
@@
-56,6
+56,7
@@
def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa
elif network['method'] == "dhcp":
inter['BOOTPROTO'] = "dhcp"
+ inter['PERSISTENT_DHCLIENT'] = "yes"
if network['hostname']:
inter['DHCP_HOSTNAME'] = network['hostname']
else: