summaryrefslogtreecommitdiff
path: root/templates/protocols/static/interface-route6
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-06-17 16:45:00 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-06-17 16:45:00 -0500
commit2a58e65ed3d4368e8ed084df331a0e1e31eec3b5 (patch)
tree09cb7c8903e67f4499ec92640314342c249c3fd0 /templates/protocols/static/interface-route6
parentf6433b4e2cc5891e08d6666de53aea2a8c8ed12f (diff)
downloadvyatta-cfg-quagga-2a58e65ed3d4368e8ed084df331a0e1e31eec3b5.tar.gz
vyatta-cfg-quagga-2a58e65ed3d4368e8ed084df331a0e1e31eec3b5.zip
Bugfix 6816: Make previous bugfix more maintainable by moving check to a script instead of defining it in multiple node.defs
Diffstat (limited to 'templates/protocols/static/interface-route6')
-rw-r--r--templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def10
1 files changed, 2 insertions, 8 deletions
diff --git a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
index 84e619cc..279329d6 100644
--- a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
+++ b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
@@ -10,14 +10,8 @@ end:
then
if [[ ${COMMIT_ACTION} = 'DELETE' ]]
then
- # Check that there is still a next-hop-interface if the parent is not deleted
- ARR=( $(cli-shell-api listNodes protocols static interface-route6 $VAR(../@) next-hop-interface) )
- cli-shell-api exists protocols static interface-route6 $VAR(../@)
- RETVAL_PARENT=$?
- if [ ${#ARR} -eq 0 ] && [ $RETVAL_PARENT -eq 0 ]
- then
- echo "Must add a next-hop-interface for route $VAR(../@)"
- exit 1
+ if ! ${vyatta_sbindir}/vyatta-next-hop-check $VAR(../@) ipv6 interface; then
+ exit 1;
fi
vtysh -c "configure terminal" \