diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-07-27 15:35:11 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-07-27 15:35:11 -0700 |
commit | 55c8a5e54d3a758b2aa64f52ec3a5549ad4d5c7c (patch) | |
tree | 824efbcf37385c8c36aad3e79cc0318c3916a4ef /templates/protocols/static/route6 | |
parent | fe9500ad26ea61a8e89f20158a4a927ba99e0a56 (diff) | |
download | vyatta-cfg-quagga-55c8a5e54d3a758b2aa64f52ec3a5549ad4d5c7c.tar.gz vyatta-cfg-quagga-55c8a5e54d3a758b2aa64f52ec3a5549ad4d5c7c.zip |
Fix ipv6 blackhole route.
Diffstat (limited to 'templates/protocols/static/route6')
-rw-r--r-- | templates/protocols/static/route6/node.tag/blackhole/node.def | 21 |
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; |