Add DNS* settings for static configuration.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Mon, 8 Dec 2008 17:00:50 +0000 (17:00 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Mon, 8 Dec 2008 17:00:50 +0000 (17:00 +0000)
plnet.py

index 1410a0e..ee3d253 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['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']
 
             if network['is_primary']:
                 gateway = network['gateway']