diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-20 10:04:41 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-20 10:04:41 -0700 |
commit | d3366af025f4698801c0a51cdd9bbb88fea83ea0 (patch) | |
tree | 1c024f0880aef57c54a465e1f814037560dfecbd /interface-templates/ip/ospf/authentication/md5 | |
parent | 00dce23d0a216a5f2c1a20dd21aec66d954d6963 (diff) | |
download | vyatta-cfg-quagga-d3366af025f4698801c0a51cdd9bbb88fea83ea0.tar.gz vyatta-cfg-quagga-d3366af025f4698801c0a51cdd9bbb88fea83ea0.zip |
Convert interface templates to use val_help:
Diffstat (limited to 'interface-templates/ip/ospf/authentication/md5')
3 files changed, 5 insertions, 12 deletions
diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.def index 5ff617e6..bc47e563 100644 --- a/interface-templates/ip/ospf/authentication/md5/key-id/node.def +++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.def @@ -1,13 +1,10 @@ tag: - type: u32 - -help: Set MD5 key id +help: MD5 key id syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "ID must be between (1-255)" +val_help: u32:1-255; MD5 key id commit:expression: $VAR(md5-key/) != ""; \ "Must add the md5-key for key-id $VAR(@)" -comp_help: possible completions: - <1-255> Set the key id diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def index 97d1f693..4c58f20d 100644 --- a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def +++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def @@ -1,11 +1,7 @@ type: txt - -help: Set md5 key - +help: MD5 key syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$"; "MD5 key must be 16 characters or less" - -comp_help: possible completions: - <text> MD5 Key (16 characters or less) +val_help: MD5 Key (16 characters or less) # If this node is created create: diff --git a/interface-templates/ip/ospf/authentication/md5/node.def b/interface-templates/ip/ospf/authentication/md5/node.def index 1f3c8519..184fa321 100644 --- a/interface-templates/ip/ospf/authentication/md5/node.def +++ b/interface-templates/ip/ospf/authentication/md5/node.def @@ -1,4 +1,4 @@ -help: Set MD5 key id +help: MD5 parameters create: vtysh -c "configure terminal" \ -c "interface $IFNAME" \ |