From c287856f6c24d3ee410c6837785ab2914341603d Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Wed, 30 Apr 2008 12:20:49 -0700 Subject: Fix 3199: removed redundant "static interface-route blackhole" --- .../interface-route/node.tag/blackhole/distance/node.def | 4 ---- .../static/interface-route/node.tag/blackhole/node.def | 11 ----------- templates/protocols/static/interface-route/node.tag/node.def | 3 ++- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 templates/protocols/static/interface-route/node.tag/blackhole/distance/node.def delete mode 100644 templates/protocols/static/interface-route/node.tag/blackhole/node.def (limited to 'templates') diff --git a/templates/protocols/static/interface-route/node.tag/blackhole/distance/node.def b/templates/protocols/static/interface-route/node.tag/blackhole/distance/node.def deleted file mode 100644 index 08a06ad8..00000000 --- a/templates/protocols/static/interface-route/node.tag/blackhole/distance/node.def +++ /dev/null @@ -1,4 +0,0 @@ -type: u32 -help: Set distance value for this route -syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)" -comp_help: <1-255> Distance for this route diff --git a/templates/protocols/static/interface-route/node.tag/blackhole/node.def b/templates/protocols/static/interface-route/node.tag/blackhole/node.def deleted file mode 100644 index aaeab5b6..00000000 --- a/templates/protocols/static/interface-route/node.tag/blackhole/node.def +++ /dev/null @@ -1,11 +0,0 @@ -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; " diff --git a/templates/protocols/static/interface-route/node.tag/node.def b/templates/protocols/static/interface-route/node.tag/node.def index 21624367..1bc36220 100644 --- a/templates/protocols/static/interface-route/node.tag/node.def +++ b/templates/protocols/static/interface-route/node.tag/node.def @@ -1,2 +1,3 @@ help: Set IP network -commit:expression: $VAR(./next-hop-interface/) != "" || $VAR(./blackhole/) != ""; "Must add either a next-hop-interface or blackhole for route $VAR(@)" +commit:expression: $VAR(./next-hop-interface/) != "" ; \ + "Must add a next-hop-interface for route $VAR(@)" -- cgit v1.2.3