summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-07-27 15:35:11 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-07-27 15:35:11 -0700
commit55c8a5e54d3a758b2aa64f52ec3a5549ad4d5c7c (patch)
tree824efbcf37385c8c36aad3e79cc0318c3916a4ef
parentfe9500ad26ea61a8e89f20158a4a927ba99e0a56 (diff)
downloadvyatta-cfg-quagga-55c8a5e54d3a758b2aa64f52ec3a5549ad4d5c7c.tar.gz
vyatta-cfg-quagga-55c8a5e54d3a758b2aa64f52ec3a5549ad4d5c7c.zip
Fix ipv6 blackhole route.
-rw-r--r--templates/protocols/static/route6/node.tag/blackhole/node.def21
1 files changed, 12 insertions, 9 deletions
diff --git a/templates/protocols/static/route6/node.tag/blackhole/node.def b/templates/protocols/static/route6/node.tag/blackhole/node.def
index aaeab5b6..9e14a628 100644
--- a/templates/protocols/static/route6/node.tag/blackhole/node.def
+++ b/templates/protocols/static/route6/node.tag/blackhole/node.def
@@ -1,11 +1,14 @@
help: Set to silently discard pkts when matched
delete:expression: "touch /tmp/static.$PPID"
-end:expression: "if [ -f \"/tmp/static.$PPID\" ]; then \
- ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"no ip route $VAR(../@) null0\" ; \
- rm /tmp/static.$PPID; \
- else \
- if [ -n \"$VAR(./distance/@)\" ]; then \
- DIST=\"$VAR(./distance/@)\"; \
- fi; \
- ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"ip route $VAR(../@) null0 $DIST \" ; \
- fi; "
+
+end: if [ -f "/tmp/static.$PPID" ]; then
+ ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" \
+ -c "no ipv6 route $VAR(../@) null0";
+ rm /tmp/static.$PPID;
+ else
+ if [ -n "$VAR(./distance/@)" ]; then
+ DIST="$VAR(./distance/@)";
+ fi;
+ ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" \
+ -c "ipv6 route $VAR(../@) null0 $DIST";
+ fi;