diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-19 12:03:39 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-19 12:03:39 -0700 |
commit | c7779f898380ed23f839ebad6ac79edba4d46b35 (patch) | |
tree | 7eeecb7b387b257e70f2fbf4887acbd41981c6f7 /templates/system | |
parent | 10a1809a6763728e8504b5181515a9208fc43532 (diff) | |
download | vyatta-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')
-rw-r--r-- | templates/system/static-host-mapping/host-name/node.def | 3 | ||||
-rw-r--r-- | templates/system/static-host-mapping/host-name/node.tag/inet/node.def | 7 |
2 files changed, 3 insertions, 7 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 " diff --git a/templates/system/static-host-mapping/host-name/node.tag/inet/node.def b/templates/system/static-host-mapping/host-name/node.tag/inet/node.def index db66bfd1..d6c0b466 100644 --- a/templates/system/static-host-mapping/host-name/node.tag/inet/node.def +++ b/templates/system/static-host-mapping/host-name/node.tag/inet/node.def @@ -1,7 +1,2 @@ -type: txt +type: ipv4, ipv6 help: Address [REQUIRED] -syntax:expression: exec "/opt/vyatta/sbin/check-ipv4-ipv6.pl $VAR(@)" - -comp_help: Possible completions: - <ipv4> Set IPv4 address - <ipv6> Set IPv6 address |