From d69939edb20d357d096d60d15dde41ddc0a03aba Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sun, 14 Sep 2014 10:36:20 +0100 Subject: 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 --- templates/system/allow-dhcp-nameservers/node.def | 7 ------- templates/system/disable-dhcp-nameservers/node.def | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 templates/system/allow-dhcp-nameservers/node.def create mode 100644 templates/system/disable-dhcp-nameservers/node.def (limited to 'templates') 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 -- cgit v1.2.3