summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShirish Sandesara <shirish.sandesara@vyatta.com>2013-06-05 09:39:17 -0700
committerShirish Sandesara <shirish.sandesara@vyatta.com>2013-06-05 09:39:17 -0700
commitc10761520879319de49c50e7d8cdf67a566dba98 (patch)
tree66e6602a43c348d863357c9f93dfcc2ffc2b9eac
parent5822867924c6ffca8ed0d7c4dfb8d7fd41ce7231 (diff)
downloadvyatta-cfg-quagga-c10761520879319de49c50e7d8cdf67a566dba98.tar.gz
vyatta-cfg-quagga-c10761520879319de49c50e7d8cdf67a566dba98.zip
modified for ipv6pbr-npf
-rw-r--r--templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def22
1 files changed, 7 insertions, 15 deletions
diff --git a/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def b/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def
index adf83a6a..f9475924 100644
--- a/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def
+++ b/templates/protocols/static/table6/node.tag/route/node.tag/next-hop/node.def
@@ -1,6 +1,7 @@
tag:
type: ipv6
-help: Next-hop router [REQUIRED]
+help: Next-hop IPv6 router [REQUIRED]
+
end:
if [[ -n "$VAR(../../../table6/@)" ]]
then
@@ -8,27 +9,18 @@ end:
fi
if [[ -z "$VAR(./disable)" ]]
then
+ # delete only for child and not the parent
if [[ ${COMMIT_ACTION} = 'DELETE' ]]
then
if ! ${vyatta_sbindir}/vyatta-next-hop-check $VAR(../@) ipv6 address; then
exit 1;
fi
- if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \
- "$VAR(../@)" "$VAR(@)"
- then
- vtysh -c "configure terminal" \
- -c "no ipv6 route $VAR(../@) $VAR(@) $table"
- fi
- #echo vtysh -c "configure terminal" -c "ipv6 route $VAR(../@) $VAR(@) $table";
- vtysh -c "configure terminal" \
- -c "ipv6 route $VAR(../@) $VAR(@) $table";
- fi
- else
- if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \
- "$VAR(../@)" "$VAR(@)"
- then
+
vtysh -c "configure terminal" \
-c "no ipv6 route $VAR(../@) $VAR(@) $table"
+ else
+ vtysh -c "configure terminal" \
+ -c " ipv6 route $VAR(../@) $VAR(@) $table"
fi
fi