diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-09-13 10:42:13 +0200 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-09-13 10:42:13 +0200 |
commit | cd9df0dcfe3df46e128472c3e3a0a1a1fbd9e00b (patch) | |
tree | bce28f4476220761281471715b82403e254659e0 /templates/policy/prefix-list | |
parent | 2b1b825268f0f87f60b2a2c4fba372d3c70a2660 (diff) | |
download | vyatta-cfg-quagga-cd9df0dcfe3df46e128472c3e3a0a1a1fbd9e00b.tar.gz vyatta-cfg-quagga-cd9df0dcfe3df46e128472c3e3a0a1a1fbd9e00b.zip |
T70: Prefix lists, allow le==ge allows ge to be empty
Diffstat (limited to 'templates/policy/prefix-list')
-rw-r--r-- | templates/policy/prefix-list/node.tag/rule/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/policy/prefix-list/node.tag/rule/node.def b/templates/policy/prefix-list/node.tag/rule/node.def index 9adf6dbe..03692419 100644 --- a/templates/policy/prefix-list/node.tag/rule/node.def +++ b/templates/policy/prefix-list/node.tag/rule/node.def @@ -28,7 +28,7 @@ end: len=`echo $VAR(./prefix/@) | awk -F/ '{ print $2 }'` ; cond="ge $VAR(./ge/@) "; fi; if [ -n "$VAR(./le/@)" ]; then - if ! ([ $VAR(./le/@) -ne 32 ] && [ -n "$VAR(./ge/@)" ] && [ $VAR(./le/@) -le $VAR(./ge/@) ]); then + if [ $VAR(./le/@) -ne 32 ] && [ -n "$VAR(./ge/@)" ] && [ $VAR(./le/@) -lt $VAR(./ge/@) ]; then echo "le must be greater than or equal to ge"; exit 1 ; fi ; |