diff options
author | Robert Bays <rbays@moresby.vyatta.com> | 2008-03-17 23:04:11 -0700 |
---|---|---|
committer | Robert Bays <rbays@moresby.vyatta.com> | 2008-03-17 23:04:11 -0700 |
commit | 775e849022773e681f6e975e04949d3930cde94d (patch) | |
tree | 259c82007910dfe5da899a3d8dc9094a1122dbdf /templates/policy/community-list | |
parent | 298958d7617b8fea64e1fe658458e631c4f49f48 (diff) | |
download | vyatta-cfg-quagga-775e849022773e681f6e975e04949d3930cde94d.tar.gz vyatta-cfg-quagga-775e849022773e681f6e975e04949d3930cde94d.zip |
iupdate help strings for policy nodes
Diffstat (limited to 'templates/policy/community-list')
6 files changed, 19 insertions, 14 deletions
diff --git a/templates/policy/community-list/node.def b/templates/policy/community-list/node.def index c16aac71..69a5cbfc 100644 --- a/templates/policy/community-list/node.def +++ b/templates/policy/community-list/node.def @@ -1,8 +1,10 @@ tag: type: u32 -help: Add a community list entry -syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 500; " \ -community-list must be \ - <1-99> Community list number (standard) \ - <100-500> Community list number (expanded) " -end:expression: "/opt/vyatta/sbin/vyatta-policy.pl --update-community-list $VAR(@)" +help: BGP community-list filter +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 500; " +community-list must be + <1-99>\tBGP community list (standard) + <100-500>\tBGP community list (expanded) " +comp_help: \1 <1-99>\tBGP community list (standard) + <100-500>\tBGP community list (expanded) +end: /opt/vyatta/sbin/vyatta-policy.pl --update-community-list $VAR(@) diff --git a/templates/policy/community-list/node.tag/description/node.def b/templates/policy/community-list/node.tag/description/node.def index b29d027a..2ee61758 100644 --- a/templates/policy/community-list/node.tag/description/node.def +++ b/templates/policy/community-list/node.tag/description/node.def @@ -1,2 +1,2 @@ type: txt -help: Community list description +help: set a description for this community list diff --git a/templates/policy/community-list/node.tag/rule/node.def b/templates/policy/community-list/node.tag/rule/node.def index adac0477..94bb576e 100644 --- a/templates/policy/community-list/node.tag/rule/node.def +++ b/templates/policy/community-list/node.tag/rule/node.def @@ -1,4 +1,5 @@ tag: type: u32 -help: Specify as-path-list rule number +help: create a rule for this BGP community list +comp_help: \1 <1-65535>\tcommunity-list rule number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "rule number must be between 1 and 65535" diff --git a/templates/policy/community-list/node.tag/rule/node.tag/action/node.def b/templates/policy/community-list/node.tag/rule/node.tag/action/node.def index 545bd4c0..66fabcd0 100644 --- a/templates/policy/community-list/node.tag/rule/node.tag/action/node.def +++ b/templates/policy/community-list/node.tag/rule/node.tag/action/node.def @@ -1,3 +1,5 @@ type: txt -help: Action to take on communities matching this rule +help: action to take on communities matching this rule +comp_help: \1 permit\tpermit matching communities + deny\t\tdeny matching communities syntax:expression: $VAR(@) in "permit", "deny"; "action must be permit or deny" diff --git a/templates/policy/community-list/node.tag/rule/node.tag/description/node.def b/templates/policy/community-list/node.tag/rule/node.tag/description/node.def index b8e3095b..562ab020 100644 --- a/templates/policy/community-list/node.tag/rule/node.tag/description/node.def +++ b/templates/policy/community-list/node.tag/rule/node.tag/description/node.def @@ -1,2 +1,2 @@ type: txt -help: Description for this rule +help: set a description for this rule diff --git a/templates/policy/community-list/node.tag/rule/node.tag/regex/node.def b/templates/policy/community-list/node.tag/rule/node.tag/regex/node.def index 5639ef67..0a703e0b 100644 --- a/templates/policy/community-list/node.tag/rule/node.tag/regex/node.def +++ b/templates/policy/community-list/node.tag/rule/node.tag/regex/node.def @@ -1,11 +1,11 @@ type: txt -help: Community list regular expression -# pending bug 2285 +help: match against a community list regular expression +comp_help: \1 <txt>\t\tcommunity-list regular expression syntax:expression: exec " \ if [ $VAR(../../@) -ge 1 ] && [ $VAR(../../@) -le 99 ]; then \ if [ -n \"`echo $VAR(@) | sed 's/[0-9]*:[0-9]*//g' | sed -e 's/internet//g' -e 's/local-AS//g' -e 's/no-advertise//g' -e 's/no-export//g'`\" ]; then \ - echo regex $VAR(@) is invalid for a standard community list; \ + echo policy community-list $VAR(../../@) rule $VAR(../@): regex $VAR(@) is invalid for a standard community list; \ exit 1 ; \ fi ; \ fi ; " -commit:expression: $VAR(../action/@) != ""; "You must specify an action before committing" +commit:expression: $VAR(../action/@) != ""; "policy community-list $VAR(../../@) rule $VAR(../@): You must specify an action" |