From d3366af025f4698801c0a51cdd9bbb88fea83ea0 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 20 Jul 2010 10:04:41 -0700 Subject: Convert interface templates to use val_help: --- interface-templates/ip/rip/authentication/md5/node.def | 2 +- .../ip/rip/authentication/md5/node.tag/password/node.def | 6 ++---- interface-templates/ip/rip/authentication/node.def | 2 +- .../ip/rip/authentication/plaintext-password/node.def | 6 ++---- interface-templates/ip/rip/node.def | 2 +- interface-templates/ip/rip/split-horizon/node.def | 2 +- 6 files changed, 8 insertions(+), 12 deletions(-) (limited to 'interface-templates/ip/rip') diff --git a/interface-templates/ip/rip/authentication/md5/node.def b/interface-templates/ip/rip/authentication/md5/node.def index 8d165fe6..ad45eb1b 100644 --- a/interface-templates/ip/rip/authentication/md5/node.def +++ b/interface-templates/ip/rip/authentication/md5/node.def @@ -1,6 +1,6 @@ tag: type: u32 -help: Set MD5 authentication key ID +help: MD5 authentication parameters syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; \ "ID must be between 1 and 255" diff --git a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def index 8ee5c39f..07ca2a41 100644 --- a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def +++ b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def @@ -1,6 +1,7 @@ type: txt -help: Set authentication password +help: Authentication password syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "MD5 key must be 16 characters or less" +val_help: MD5 Key (16 characters or less) update:vtysh \ -c "configure terminal" -c "interface $IFNAME" \ @@ -14,6 +15,3 @@ delete:vtysh --noerror \ -c "no ip rip authentication mode md5" \ -c "no ip rip authentication key-chain $IFNAME-rip" \ -c "no key chain $IFNAME-rip" - -comp_help: possible completions: - MD5 Key (16 characters or less) diff --git a/interface-templates/ip/rip/authentication/node.def b/interface-templates/ip/rip/authentication/node.def index 8756de35..22039cf7 100644 --- a/interface-templates/ip/rip/authentication/node.def +++ b/interface-templates/ip/rip/authentication/node.def @@ -1 +1 @@ -help: Set authentication method +help: Authentication method diff --git a/interface-templates/ip/rip/authentication/plaintext-password/node.def b/interface-templates/ip/rip/authentication/plaintext-password/node.def index addf2473..b294ebd0 100644 --- a/interface-templates/ip/rip/authentication/plaintext-password/node.def +++ b/interface-templates/ip/rip/authentication/plaintext-password/node.def @@ -1,7 +1,8 @@ type: txt -help: Set plain text password +help: Plain text password syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "Password must be 16 characters or less" commit:expression: $VAR(../md5/) == "" ; "md5 password already set" +val_help: Password (16 characters or less) update: vtysh -c "configure terminal" -c "interface $IFNAME" \ -c "ip rip authentication mode text" \ @@ -10,6 +11,3 @@ update: vtysh -c "configure terminal" -c "interface $IFNAME" \ delete: vtysh -c "configure terminal" -c "interface $IFNAME" \ -c "no ip rip authentication mode" \ -c "no ip rip authentication string $VAR(@)" - -comp_help: possible completions: - Password (16 characters or less) diff --git a/interface-templates/ip/rip/node.def b/interface-templates/ip/rip/node.def index d1f72a5f..d6a4eb34 100644 --- a/interface-templates/ip/rip/node.def +++ b/interface-templates/ip/rip/node.def @@ -1 +1 @@ -help: Set Routing Information Protocol (RIP) for specified interface +help: Routing Information Protocol (RIP) diff --git a/interface-templates/ip/rip/split-horizon/node.def b/interface-templates/ip/rip/split-horizon/node.def index ba39b616..c4fb5ddc 100644 --- a/interface-templates/ip/rip/split-horizon/node.def +++ b/interface-templates/ip/rip/split-horizon/node.def @@ -1 +1 @@ -help: Set to control split horizon parameters on this interface +help: Split horizon parameters -- cgit v1.2.3