diff options
Diffstat (limited to 'templates/policy/as-path-list')
6 files changed, 13 insertions, 7 deletions
diff --git a/templates/policy/as-path-list/node.def b/templates/policy/as-path-list/node.def index bda7042e..21285cc4 100644 --- a/templates/policy/as-path-list/node.def +++ b/templates/policy/as-path-list/node.def @@ -2,4 +2,5 @@ tag: type: txt help: BGP autonomous system path filter syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "as-path-list name must be alpha-numeric" -end:expression: "/opt/vyatta/sbin/vyatta-policy.pl --update-aspath-list $VAR(@)" +end: /opt/vyatta/sbin/vyatta-policy.pl --update-aspath-list $VAR(@) +comp_help: \1 <txt>\t\tas-path-list name diff --git a/templates/policy/as-path-list/node.tag/description/node.def b/templates/policy/as-path-list/node.tag/description/node.def index b45a1767..6790c1bd 100644 --- a/templates/policy/as-path-list/node.tag/description/node.def +++ b/templates/policy/as-path-list/node.tag/description/node.def @@ -1,2 +1,2 @@ type: txt -help: AS path list description +help: set a description for this as-path-list diff --git a/templates/policy/as-path-list/node.tag/rule/node.def b/templates/policy/as-path-list/node.tag/rule/node.def index adac0477..d3fbcfcc 100644 --- a/templates/policy/as-path-list/node.tag/rule/node.def +++ b/templates/policy/as-path-list/node.tag/rule/node.def @@ -1,4 +1,6 @@ tag: type: u32 -help: Specify as-path-list rule number +help: create a rule for this as-path-list +comp_help: \1 <1-65535>\tas-path-list rule number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "rule number must be between 1 and 65535" + diff --git a/templates/policy/as-path-list/node.tag/rule/node.tag/action/node.def b/templates/policy/as-path-list/node.tag/rule/node.tag/action/node.def index 1b7787c5..437cb686 100644 --- a/templates/policy/as-path-list/node.tag/rule/node.tag/action/node.def +++ b/templates/policy/as-path-list/node.tag/rule/node.tag/action/node.def @@ -1,3 +1,5 @@ type: txt -help: Action to take on AS paths matching this rule +help: action to take on AS paths matching this rule +comp_help: \1 permit\tpermit matching as-paths + deny\t\tdeny matching as-paths syntax:expression: $VAR(@) in "permit", "deny"; "action must be permit or deny" diff --git a/templates/policy/as-path-list/node.tag/rule/node.tag/description/node.def b/templates/policy/as-path-list/node.tag/rule/node.tag/description/node.def index b8e3095b..562ab020 100644 --- a/templates/policy/as-path-list/node.tag/rule/node.tag/description/node.def +++ b/templates/policy/as-path-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/as-path-list/node.tag/rule/node.tag/regex/node.def b/templates/policy/as-path-list/node.tag/rule/node.tag/regex/node.def index e84579d8..6afc2c35 100644 --- a/templates/policy/as-path-list/node.tag/rule/node.tag/regex/node.def +++ b/templates/policy/as-path-list/node.tag/rule/node.tag/regex/node.def @@ -1,5 +1,6 @@ type: txt -help: AS path regular expression +help: match against an AS path regular expression +comp_help: \1 <txt>\t\tas-path regular expression # TODO: check regex syntax; \ # "invalid chars in regex syntax" -commit:expression: $VAR(../action/@) != ""; "You must specify an action before committing" +commit:expression: $VAR(../action/@) != ""; "policy as-path-list $VAR(../../@) rule $VAR(../@): You must specify an action" |