git://git.onelab.eu
/
pyplnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70e2056
)
Add PRIMARY=yes to the correct configuration file.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Fri, 5 Dec 2008 14:26:22 +0000
(14:26 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Fri, 5 Dec 2008 14:26:22 +0000
(14:26 +0000)
plnet.py
patch
|
blob
|
history
diff --git
a/plnet.py
b/plnet.py
index
3caa8df
..
06ac3d6
100755
(executable)
--- a/
plnet.py
+++ b/
plnet.py
@@
-48,6
+48,8
@@
def InitInterfaces(logger, plc, data, root="", files_only=False, program="NodeMa
inter['USERCTL']='no'
if network['mac']:
inter['HWADDR'] = network['mac']
inter['USERCTL']='no'
if network['mac']:
inter['HWADDR'] = network['mac']
+ if network['is_primary']:
+ inter['PRIMARY']='yes'
if network['method'] == "static":
inter['BOOTPROTO'] = "static"
if network['method'] == "static":
inter['BOOTPROTO'] = "static"