summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2014-09-10 22:21:52 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2014-09-10 22:21:52 +0100
commit778daa753a558283a200e4f817d0e4a3e48ede10 (patch)
tree933ca6ba7d14922405d915512d2f55c58704bbf2 /templates
parent8d7c72275d38cfa272b56705acf145f4f83e7d05 (diff)
downloadvyatta-cfg-system-778daa753a558283a200e4f817d0e4a3e48ede10.tar.gz
vyatta-cfg-system-778daa753a558283a200e4f817d0e4a3e48ede10.zip
vyatta-cfg-system: expand 'set system allow-dhcp-nameservers' logic
Expand the logic in 'set system allow-dhcp-nameservers', so that in addition to either allowing / denying DHCP related updates to resolv.conf when the interface changes state, it will also either add or remove the currently supplied DHCP name-servers depending on it's state. This change in name-servers will take place immediately on commit. Bug #309 http://bugzilla.vyos.net/show_bug.cgi?id=309
Diffstat (limited to 'templates')
-rw-r--r--templates/system/allow-dhcp-nameservers/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/system/allow-dhcp-nameservers/node.def b/templates/system/allow-dhcp-nameservers/node.def
index c010baf1..442e003f 100644
--- a/templates/system/allow-dhcp-nameservers/node.def
+++ b/templates/system/allow-dhcp-nameservers/node.def
@@ -2,3 +2,6 @@ priority: 300
type: bool
help: Allow DHCP to update DNS settings
default: true
+
+update: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl --config-mode 1
+delete: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl --config-mode 1 \ No newline at end of file