summaryrefslogtreecommitdiff
path: root/templates/policy/as-path-list
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-21 12:07:29 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-21 12:07:29 -0700
commitbaa0d50c299c06ad5027f730d7a63e8eec6bef43 (patch)
tree4cd709395e5e23d69990f93ac27b5095e0d509a5 /templates/policy/as-path-list
parent69c3c53afee2f975b5c631d19dfd150caaf4b861 (diff)
downloadvyatta-cfg-quagga-baa0d50c299c06ad5027f730d7a63e8eec6bef43.tar.gz
vyatta-cfg-quagga-baa0d50c299c06ad5027f730d7a63e8eec6bef43.zip
Convert Quagga templates to use val_help:
Diffstat (limited to 'templates/policy/as-path-list')
-rw-r--r--templates/policy/as-path-list/node.def5
-rw-r--r--templates/policy/as-path-list/node.tag/rule/node.def3
-rw-r--r--templates/policy/as-path-list/node.tag/rule/node.tag/action/node.def5
-rw-r--r--templates/policy/as-path-list/node.tag/rule/node.tag/regex/node.def3
4 files changed, 11 insertions, 5 deletions
diff --git a/templates/policy/as-path-list/node.def b/templates/policy/as-path-list/node.def
index 3beb59ea..a2713bf1 100644
--- a/templates/policy/as-path-list/node.def
+++ b/templates/policy/as-path-list/node.def
@@ -1,6 +1,9 @@
tag:
type: txt
help: Set Border Gateway Protocol (BGP) autonomous system path filter
+val_help: AS path list name
+
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]+$" ; "as-path-list name must be alpha-numeric"
+
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/rule/node.def b/templates/policy/as-path-list/node.tag/rule/node.def
index fed3dd56..afd67fe4 100644
--- a/templates/policy/as-path-list/node.tag/rule/node.def
+++ b/templates/policy/as-path-list/node.tag/rule/node.def
@@ -1,6 +1,7 @@
tag:
type: u32
help: Set a rule for this as-path-list
-comp_help: \1 <1-65535>\tas-path-list rule number
+val_help: u32:1-65535; AS 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 c7bd4189..ed0a4329 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,5 +1,6 @@
type: txt
help: Set action to take on AS paths matching this rule [REQUIRED]
-comp_help: \1 permit\tpermit matching as-paths
- deny\t\tdeny matching as-paths
+val_help: permit; Permit matching as-paths
+val_help: deny; Deny 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/regex/node.def b/templates/policy/as-path-list/node.tag/rule/node.tag/regex/node.def
index ff44785c..372c6b9b 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,6 +1,7 @@
type: txt
help: Set regular expression to match against an AS path
-comp_help: \1 <aa:nn>\tas-path regular expression (ex: "50:1 6553:1201")
+val_help: <aa:nn>; AS path regular expression (ex: "50:1 6553:1201")
# TODO: check regex syntax; \
# "invalid chars in regex syntax"
+
commit:expression: $VAR(../action/@) != ""; "policy as-path-list $VAR(../../@) rule $VAR(../@): You must specify an action"