From: Daniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Date: Mon, 8 Dec 2008 17:00:50 +0000 (+0000)
Subject: Add DNS* settings for static configuration.
X-Git-Tag: pyplnet-4.2-1~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d2611b6b583a11f6c420adda417832bb5cff5637;p=pyplnet.git

Add DNS* settings for static configuration.
---

diff --git a/plnet.py b/plnet.py
index 8e61769..a9a868f 100755
--- 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']