summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-16 06:41:40 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-16 06:41:40 +0200
commitea256dc7956a3fbe5947c0ad9da9e90dd2320327 (patch)
treea9faad8eccedf2030f6e23a69f8a4e41b4958eff /templates
parent413d89862ad9bea7d31200eb7a29bd0dd7fca214 (diff)
downloadvyatta-cfg-system-ea256dc7956a3fbe5947c0ad9da9e90dd2320327.tar.gz
vyatta-cfg-system-ea256dc7956a3fbe5947c0ad9da9e90dd2320327.zip
T574: remove the old system host-name/domain-name commands, moving to vyos-1x.
Diffstat (limited to 'templates')
-rw-r--r--templates/system/domain-name/node.def12
-rw-r--r--templates/system/host-name/node.def12
2 files changed, 0 insertions, 24 deletions
diff --git a/templates/system/domain-name/node.def b/templates/system/domain-name/node.def
deleted file mode 100644
index 4866ddf8..00000000
--- a/templates/system/domain-name/node.def
+++ /dev/null
@@ -1,12 +0,0 @@
-priority: 400
-type: txt
-help: System domain name
-
-# Allow letter-number-hyphen in label (but can not start or end with hyphen)
-syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_domainname.pl $VAR(../host-name).$VAR(@)"
-
-update: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl
- sudo /opt/vyatta/sbin/vyatta_update_hosts.pl --no-restart-services
-
-delete: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl
- sudo /opt/vyatta/sbin/vyatta_update_hosts.pl --no-restart-services
diff --git a/templates/system/host-name/node.def b/templates/system/host-name/node.def
deleted file mode 100644
index 00798bef..00000000
--- a/templates/system/host-name/node.def
+++ /dev/null
@@ -1,12 +0,0 @@
-priority: 100
-type: txt
-help: System host name (default: vyos)
-default: "vyos"
-syntax:expression: pattern $VAR(@) "^[[:alnum:]][-.[:alnum:]]*[[:alnum:]]$"
- ; "invalid host name $VAR(@)"
-
-syntax:expression: pattern $VAR(@) "^.{1,63}$" ; "invalid host-name length"
-
-update: sudo /opt/vyatta/sbin/vyatta_update_hosts.pl
-
-delete: sudo /opt/vyatta/sbin/vyatta_update_hosts.pl