Add PRIMARY=yes to the correct configuration file.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Fri, 5 Dec 2008 14:26:22 +0000 (14:26 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Fri, 5 Dec 2008 14:26:22 +0000 (14:26 +0000)
plnet.py

index c420203..151cd2f 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']
+        if network['is_primary']:
+            inter['PRIMARY']='yes'
 
         if network['method'] == "static":
             inter['BOOTPROTO'] = "static"