diff options
Diffstat (limited to 'templates/protocols')
3 files changed, 2 insertions, 16 deletions
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(@)" |