From baa0d50c299c06ad5027f730d7a63e8eec6bef43 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 21 Jul 2010 12:07:29 -0700 Subject: Convert Quagga templates to use val_help: --- templates/protocols/rip/default-distance/node.def | 4 +++- templates/protocols/rip/default-metric/node.def | 4 +++- templates/protocols/rip/network-distance/node.tag/distance/node.def | 3 ++- templates/protocols/rip/redistribute/bgp/metric/node.def | 2 ++ templates/protocols/rip/redistribute/connected/metric/node.def | 5 ++--- templates/protocols/rip/redistribute/kernel/metric/node.def | 2 ++ templates/protocols/rip/redistribute/ospf/metric/node.def | 2 ++ templates/protocols/rip/redistribute/static/metric/node.def | 2 ++ templates/protocols/rip/timers/garbage-collection/node.def | 3 +-- templates/protocols/rip/timers/timeout/node.def | 3 +-- templates/protocols/rip/timers/update/node.def | 3 +-- 11 files changed, 21 insertions(+), 12 deletions(-) (limited to 'templates/protocols/rip') diff --git a/templates/protocols/rip/default-distance/node.def b/templates/protocols/rip/default-distance/node.def index 5b7996e6..75cf3c33 100644 --- a/templates/protocols/rip/default-distance/node.def +++ b/templates/protocols/rip/default-distance/node.def @@ -1,8 +1,10 @@ type: u32 help: Set administrative distance syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "must be between 1 and 255" +val_help: u32:1-255; Administrative distance + update:expression: "vtysh -c \"configure terminal\" -c \"router rip\" \ -c \"distance $VAR(@) \" " + delete:expression: "vtysh -c \"configure terminal\" -c \"router rip\" \ -c \"no distance $VAR(@) \" " -comp_help: Enter a distance valude between 1-255 diff --git a/templates/protocols/rip/default-metric/node.def b/templates/protocols/rip/default-metric/node.def index ea1ceb77..870860eb 100644 --- a/templates/protocols/rip/default-metric/node.def +++ b/templates/protocols/rip/default-metric/node.def @@ -1,8 +1,10 @@ type: u32 help: Set metric of redistributed routes syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "Must be between 1-16" +val_help: u32:1-16; Redistributed routes metric + update:expression: "vtysh -c \"configure terminal\" -c \"router rip\" \ -c \"default-metric $VAR(@) \"; " + delete:expression: "vtysh -c \"configure terminal\" -c \"router rip\" \ -c \"no default-metric $VAR(@) \"; " -#comp_help <1-16> Default metric diff --git a/templates/protocols/rip/network-distance/node.tag/distance/node.def b/templates/protocols/rip/network-distance/node.tag/distance/node.def index 9b05a496..56735bf6 100644 --- a/templates/protocols/rip/network-distance/node.tag/distance/node.def +++ b/templates/protocols/rip/network-distance/node.tag/distance/node.def @@ -1,6 +1,7 @@ type: u32 help: Set administrative distance for network syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "must be between 1 and 255" +val_help: u32:1-255; Administrative distance + delete:expression: "echo $VAR(@) > /tmp/rip-network-distance.$PPID" -comp_help: Enter a distance valude between 1-255 diff --git a/templates/protocols/rip/redistribute/bgp/metric/node.def b/templates/protocols/rip/redistribute/bgp/metric/node.def index ad569327..e2c104a6 100644 --- a/templates/protocols/rip/redistribute/bgp/metric/node.def +++ b/templates/protocols/rip/redistribute/bgp/metric/node.def @@ -1,3 +1,5 @@ type: u32 help: Set metric for redistributed routes +val_help: u32:1-16; Redistribute route metric + syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "metric must be between 1 and 16" diff --git a/templates/protocols/rip/redistribute/connected/metric/node.def b/templates/protocols/rip/redistribute/connected/metric/node.def index 101e24f9..e2c104a6 100644 --- a/templates/protocols/rip/redistribute/connected/metric/node.def +++ b/templates/protocols/rip/redistribute/connected/metric/node.def @@ -1,6 +1,5 @@ type: u32 help: Set metric for redistributed routes -syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "metric must be between 1 and 16" - - +val_help: u32:1-16; Redistribute route metric +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "metric must be between 1 and 16" diff --git a/templates/protocols/rip/redistribute/kernel/metric/node.def b/templates/protocols/rip/redistribute/kernel/metric/node.def index ad569327..e2c104a6 100644 --- a/templates/protocols/rip/redistribute/kernel/metric/node.def +++ b/templates/protocols/rip/redistribute/kernel/metric/node.def @@ -1,3 +1,5 @@ type: u32 help: Set metric for redistributed routes +val_help: u32:1-16; Redistribute route metric + syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "metric must be between 1 and 16" diff --git a/templates/protocols/rip/redistribute/ospf/metric/node.def b/templates/protocols/rip/redistribute/ospf/metric/node.def index 6ed582ad..8d752e7d 100644 --- a/templates/protocols/rip/redistribute/ospf/metric/node.def +++ b/templates/protocols/rip/redistribute/ospf/metric/node.def @@ -1,4 +1,6 @@ type: u32 help: Set metric for redistributed routes +val_help: u32:1-16; Redistribute route metric + syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "metric must be between 1 and 16" diff --git a/templates/protocols/rip/redistribute/static/metric/node.def b/templates/protocols/rip/redistribute/static/metric/node.def index ad569327..e2c104a6 100644 --- a/templates/protocols/rip/redistribute/static/metric/node.def +++ b/templates/protocols/rip/redistribute/static/metric/node.def @@ -1,3 +1,5 @@ type: u32 help: Set metric for redistributed routes +val_help: u32:1-16; Redistribute route metric + syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 16; "metric must be between 1 and 16" diff --git a/templates/protocols/rip/timers/garbage-collection/node.def b/templates/protocols/rip/timers/garbage-collection/node.def index 276efb19..b482ded1 100644 --- a/templates/protocols/rip/timers/garbage-collection/node.def +++ b/templates/protocols/rip/timers/garbage-collection/node.def @@ -3,5 +3,4 @@ default: 120 help: Set garbage collection timer syntax:expression: $VAR(@) >= 5 && $VAR(@) <= 2147483647; \ "Garbage collection timer must be between 5 and 2147483647" -comp_help: possible completions: - <5-2147483647> Garbage colletion time (default 120) +val_help: u32:5-2147483647; Garbage colletion time (default 120) diff --git a/templates/protocols/rip/timers/timeout/node.def b/templates/protocols/rip/timers/timeout/node.def index adc9946a..ce2e172a 100644 --- a/templates/protocols/rip/timers/timeout/node.def +++ b/templates/protocols/rip/timers/timeout/node.def @@ -3,5 +3,4 @@ default: 180 help: Set routing information timeout timer syntax:expression: $VAR(@) >= 5 && $VAR(@) <= 2147483647; \ "Timeout timer must be between 5 and 2147483647" -comp_help: possible completions: - <5-2147483647> Routing information timeout timer (default 180) +val_help: u32:5-2147483647; Routing information timeout timer (default 180) diff --git a/templates/protocols/rip/timers/update/node.def b/templates/protocols/rip/timers/update/node.def index 6c574ede..1b34c5ae 100644 --- a/templates/protocols/rip/timers/update/node.def +++ b/templates/protocols/rip/timers/update/node.def @@ -3,5 +3,4 @@ default: 30 help: Set routing table update timer syntax:expression: $VAR(@) >= 5 && $VAR(@) <= 2147483647; \ "Update timer must be between 5 and 2147483647" -comp_help: possible completions: - <5-2147483647> Routing table update timer in seconds (default 30) +val_help: u32:5-2147483647; Routing table update timer in seconds (default 30) -- cgit v1.2.3