summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2014-09-14 10:36:20 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2014-09-14 10:36:20 +0100
commitd69939edb20d357d096d60d15dde41ddc0a03aba (patch)
treead0955e85ab5061719e67c480f9f9eeaaa5e4f9a /templates
parentd5585c36ec524898cd736fb039aad167eee5c6ab (diff)
downloadvyatta-cfg-system-d69939edb20d357d096d60d15dde41ddc0a03aba.tar.gz
vyatta-cfg-system-d69939edb20d357d096d60d15dde41ddc0a03aba.zip
vyatta-cfg-system: rename allow-dhcp-nameservers and change to typeless
Rename allow-dhcp-nameservers to disable-dhcp-nameservers and update the logic to take the new meaning into account. The option is now also typeless, so the node is either absent (default) or present (enabled). Format 'set / delete system disable-dhcp-nameservers' Linked to Bug #182 and Bug #308 Bug #314 http://bugzilla.vyos.net/show_bug.cgi?id=314
Diffstat (limited to 'templates')
-rw-r--r--templates/system/allow-dhcp-nameservers/node.def7
-rw-r--r--templates/system/disable-dhcp-nameservers/node.def5
2 files changed, 5 insertions, 7 deletions
diff --git a/templates/system/allow-dhcp-nameservers/node.def b/templates/system/allow-dhcp-nameservers/node.def
deleted file mode 100644
index 442e003f..00000000
--- a/templates/system/allow-dhcp-nameservers/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-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
diff --git a/templates/system/disable-dhcp-nameservers/node.def b/templates/system/disable-dhcp-nameservers/node.def
new file mode 100644
index 00000000..adf84948
--- /dev/null
+++ b/templates/system/disable-dhcp-nameservers/node.def
@@ -0,0 +1,5 @@
+priority: 300
+help: Disable DHCP updates of DNS settings
+
+create: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl --config-mode 1
+delete: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl --config-mode 1