diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2016-09-01 14:35:17 +0200 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2016-09-01 14:35:17 +0200 |
commit | 2b1b825268f0f87f60b2a2c4fba372d3c70a2660 (patch) | |
tree | 52747883ca10944de44a3c2ae38079ceeb18e017 /templates/policy | |
parent | c309df3e034e2fe93659559d8947077285ccc985 (diff) | |
download | vyatta-cfg-quagga-2b1b825268f0f87f60b2a2c4fba372d3c70a2660.tar.gz vyatta-cfg-quagga-2b1b825268f0f87f60b2a2c4fba372d3c70a2660.zip |
T70: Prefix lists, allow le==ge
Diffstat (limited to 'templates/policy')
-rw-r--r-- | templates/policy/prefix-list/node.tag/rule/node.def | 2 | ||||
-rw-r--r-- | templates/policy/prefix-list6/node.tag/rule/node.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/policy/prefix-list/node.tag/rule/node.def b/templates/policy/prefix-list/node.tag/rule/node.def index e779122a..9adf6dbe 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/@) -le $VAR(./ge/@) ]); then echo "le must be greater than or equal to ge"; exit 1 ; fi ; diff --git a/templates/policy/prefix-list6/node.tag/rule/node.def b/templates/policy/prefix-list6/node.tag/rule/node.def index d3540e09..1d0f2acc 100644 --- a/templates/policy/prefix-list6/node.tag/rule/node.def +++ b/templates/policy/prefix-list6/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 128 ] && [ -n "$VAR(./ge/@)" ] && [ $VAR(./le/@) -le $VAR(./ge/@) ]; then + if ! ([ $VAR(./le/@) -ne 128 ] && [ -n "$VAR(./ge/@)" ] && [ $VAR(./le/@) -le $VAR(./ge/@) ]); then echo "le must be greater than or equal to ge"; exit 1 ; fi ; |