summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-08-31 20:16:00 -0700
committerBob Gilligan <gilligan@vyatta.com>2010-08-31 20:16:00 -0700
commitaf6887e871c784e86656261fdf1034d28e14e9b2 (patch)
treecf8beb8146db7e4708aa94744c71ec9c3c54b8a3
parent168d22dbfd0680ef7375e443f67a0ef63495a517 (diff)
downloadvyatta-cfg-quagga-af6887e871c784e86656261fdf1034d28e14e9b2.tar.gz
vyatta-cfg-quagga-af6887e871c784e86656261fdf1034d28e14e9b2.zip
Bugfix 5545: Update quagga when any prefix-list6 rule element is changed
Previously, quagga was updated only when a rule was created. This meant that changes would not be reflected in quagga until the system was rebooted, or until the rule was deleted and re-created. Patch courtesy of: Jon Andersson <Jon.Andersson@Thales.no>
-rw-r--r--templates/policy/prefix-list6/node.tag/rule/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/policy/prefix-list6/node.tag/rule/node.def b/templates/policy/prefix-list6/node.tag/rule/node.def
index 5e466f47..d3540e09 100644
--- a/templates/policy/prefix-list6/node.tag/rule/node.def
+++ b/templates/policy/prefix-list6/node.tag/rule/node.def
@@ -35,7 +35,7 @@ end: len=`echo $VAR(./prefix/@) | awk -F/ '{ print $2 }'` ;
cond="$cond le $VAR(./le/@) ";
fi;
- if [ ${COMMIT_ACTION} = 'SET' ]; then
+ if [ ${COMMIT_ACTION} = 'SET' -o ${COMMIT_ACTION} = 'ACTIVE' ]; then
vtysh -c "configure terminal" \
-c "ipv6 prefix-list $VAR(../@) seq $VAR(@) $VAR(./action/@) $VAR(./prefix/@) $cond " ;
fi;