From 25d3ee90522b1056d9a25735c3e0c89e7b1eeae1 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 4 Mar 2010 09:34:20 -0800 Subject: Allow multiple values in 'set community' Bug 5400 Allow for setting multiple values in quoted string for set community. --- .../policy/route-map/node.tag/rule/node.tag/set/community/node.def | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'templates/policy') diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def index d03bfc81..5d0ef00d 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def @@ -9,12 +9,7 @@ comp_help: \1 \tcommunity in 4 octet AS:value format allowed:echo "none local-AS no-advertise no-export internet" -syntax:expression: pattern $VAR(@) \ - "^(additive )?([0-9]+:[0-9]+|none|local-AS|no-advertise|no-export|internet)$" \ - ; "\"$VAR(@)\" unknown community string or attribute" - -syntax:expression: "$VAR(@)" != "additive none" \ - ; "\"additive none\" is meaningless" +syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-community $VAR(@)" commit:expression: $VAR(../../action/) != "" \ ; "policy route-map $VAR(../../../@) rule $VAR(../../@): You must specify an action" -- cgit v1.2.3