summaryrefslogtreecommitdiff
path: root/templates/system/static-host-mapping/host-name/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-19 12:03:39 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-19 12:03:39 -0700
commitc7779f898380ed23f839ebad6ac79edba4d46b35 (patch)
tree7eeecb7b387b257e70f2fbf4887acbd41981c6f7 /templates/system/static-host-mapping/host-name/node.def
parent10a1809a6763728e8504b5181515a9208fc43532 (diff)
downloadvyatta-cfg-system-c7779f898380ed23f839ebad6ac79edba4d46b35.tar.gz
vyatta-cfg-system-c7779f898380ed23f839ebad6ac79edba4d46b35.zip
Revise static-host-mapping
Use ipv4,ipv6 for host mapping address which uses internal CLI syntax check. Revise help text to match CLI standard
Diffstat (limited to 'templates/system/static-host-mapping/host-name/node.def')
-rw-r--r--templates/system/static-host-mapping/host-name/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/system/static-host-mapping/host-name/node.def b/templates/system/static-host-mapping/host-name/node.def
index 04abf871..693b5592 100644
--- a/templates/system/static-host-mapping/host-name/node.def
+++ b/templates/system/static-host-mapping/host-name/node.def
@@ -1,10 +1,11 @@
tag:
type: txt
-help: Map host name to address
+help: Host name for static address mapping
syntax:expression: pattern $VAR(@) "^[[:alnum:]][-.[:alnum:]]*[[:alnum:]]$"
; "invalid host name $VAR(@)"
+
commit:expression: $VAR(./inet) != ""; "IP address for the static mapping must be set"
end: sudo sh -c "