diff options
Diffstat (limited to 'templates/policy/community-list')
6 files changed, 15 insertions, 15 deletions
diff --git a/templates/policy/community-list/node.def b/templates/policy/community-list/node.def index 69e094d0..c16aac71 100644 --- a/templates/policy/community-list/node.def +++ b/templates/policy/community-list/node.def @@ -1,8 +1,8 @@ tag: type: u32 -help: "Add a community list entry" -syntax: $(@) >= 1 && $(@) <= 500; " \ +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: "/opt/vyatta/sbin/vyatta-policy.pl --update-community-list $(@)" +end:expression: "/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 ed3f5586..b29d027a 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: Community list description diff --git a/templates/policy/community-list/node.tag/rule/node.def b/templates/policy/community-list/node.tag/rule/node.def index 3a0c33bd..adac0477 100644 --- a/templates/policy/community-list/node.tag/rule/node.def +++ b/templates/policy/community-list/node.tag/rule/node.def @@ -1,4 +1,4 @@ tag: type: u32 -help: "Specify as-path-list rule number" -syntax: $(@) >= 1 && $(@) <= 65535; "rule number must be between 1 and 65535" +help: Specify as-path-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 bef39bca..545bd4c0 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,3 @@ type: txt -help: "Action to take on communities matching this rule" -syntax: $(@) in "permit", "deny"; "action must be permit or deny" +help: Action to take on communities matching this rule +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 00fed102..b8e3095b 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: 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 2ae87cf6..5639ef67 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" +help: Community list regular expression # pending bug 2285 -syntax: exec " \ -if [ $(../../@) -ge 1 ] && [ $(../../@) -le 99 ]; then \ - if [ -n \"`echo $(@) | 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 $(@) is invalid for a standard community list; \ +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; \ exit 1 ; \ fi ; \ fi ; " -commit: $(../action/@) != ""; "You must specify an action before committing" +commit:expression: $VAR(../action/@) != ""; "You must specify an action before committing" |