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/policy/prefix-list6/node.def | 4 +--- templates/policy/prefix-list6/node.tag/rule/node.def | 4 +--- .../policy/prefix-list6/node.tag/rule/node.tag/action/node.def | 6 ++---- templates/policy/prefix-list6/node.tag/rule/node.tag/ge/node.def | 4 +--- templates/policy/prefix-list6/node.tag/rule/node.tag/le/node.def | 4 +--- .../policy/prefix-list6/node.tag/rule/node.tag/prefix/node.def | 4 +--- 6 files changed, 7 insertions(+), 19 deletions(-) (limited to 'templates/policy/prefix-list6') diff --git a/templates/policy/prefix-list6/node.def b/templates/policy/prefix-list6/node.def index 07796eae..728107a8 100644 --- a/templates/policy/prefix-list6/node.def +++ b/templates/policy/prefix-list6/node.def @@ -1,8 +1,6 @@ tag: type: txt help: Set IPv6 prefix-list filter +val_help: Prefix list name syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "prefix-list6 name must be alpha-numeric" - -comp_help: possible completions: - prefix-list list name diff --git a/templates/policy/prefix-list6/node.tag/rule/node.def b/templates/policy/prefix-list6/node.tag/rule/node.def index bee35245..e5ea49a3 100644 --- a/templates/policy/prefix-list6/node.tag/rule/node.def +++ b/templates/policy/prefix-list6/node.tag/rule/node.def @@ -1,6 +1,7 @@ tag: type: u32 help: Set a rule for this prefix-list6 +val_help: u32:1-65535; Prefix list rule number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "rule number must be between 1 and 65535" @@ -39,6 +40,3 @@ end: len=`echo $VAR(./prefix/@) | awk -F/ '{ print $2 }'` ; -c "ipv6 prefix-list $VAR(../@) seq $VAR(@) $VAR(./action/@) $VAR(./prefix/@) $cond " ; fi; exit 0 ; - -comp_help: possible completions: - <1-65535> prefix-list rule number \ No newline at end of file diff --git a/templates/policy/prefix-list6/node.tag/rule/node.tag/action/node.def b/templates/policy/prefix-list6/node.tag/rule/node.tag/action/node.def index 479c8100..1da5e2d4 100644 --- a/templates/policy/prefix-list6/node.tag/rule/node.tag/action/node.def +++ b/templates/policy/prefix-list6/node.tag/rule/node.tag/action/node.def @@ -1,8 +1,6 @@ type: txt help: Set action to take on prefixes matching this rule +val_help: permit; Permit matching prefixes +val_help: deny; Deny matching prefixes syntax:expression: $VAR(@) in "permit", "deny"; "action must be permit or deny" - -comp_help: possible completions: - permit permit matching prefixes - deny deny matching prefixes diff --git a/templates/policy/prefix-list6/node.tag/rule/node.tag/ge/node.def b/templates/policy/prefix-list6/node.tag/rule/node.tag/ge/node.def index 729089a3..135e1da9 100644 --- a/templates/policy/prefix-list6/node.tag/rule/node.tag/ge/node.def +++ b/templates/policy/prefix-list6/node.tag/rule/node.tag/ge/node.def @@ -1,7 +1,5 @@ type: u32 help: Set prefix length to match a netmask greater than or equal to it +val_help: u32:0-128; Netmask greater than length syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 128; "ge must be between 0 and 128" - -comp_help: possible completions: - <0-128> netmask greater than length diff --git a/templates/policy/prefix-list6/node.tag/rule/node.tag/le/node.def b/templates/policy/prefix-list6/node.tag/rule/node.tag/le/node.def index 1bb344b9..15c674d3 100644 --- a/templates/policy/prefix-list6/node.tag/rule/node.tag/le/node.def +++ b/templates/policy/prefix-list6/node.tag/rule/node.tag/le/node.def @@ -1,7 +1,5 @@ type: u32 help: Set prefix length to match a netmask less than or equal to it +val_help: u32:0-128; Netmask less than length syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 128; "le must be between 0 and 128" - -comp_help: possible completions: - <0-128> netmask less than length diff --git a/templates/policy/prefix-list6/node.tag/rule/node.tag/prefix/node.def b/templates/policy/prefix-list6/node.tag/rule/node.tag/prefix/node.def index ff9875dc..a478035d 100644 --- a/templates/policy/prefix-list6/node.tag/rule/node.tag/prefix/node.def +++ b/templates/policy/prefix-list6/node.tag/rule/node.tag/prefix/node.def @@ -1,5 +1,3 @@ type: ipv6net help: Set a prefix to match - -comp_help: possible completions: - Set the IPv6 prefix +val_help: IPv5 prefix -- cgit v1.2.3