summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/static/route')
-rw-r--r--templates/protocols/static/route/node.tag/blackhole/node.def4
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.def4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/protocols/static/route/node.tag/blackhole/node.def b/templates/protocols/static/route/node.tag/blackhole/node.def
index f3844833..4b9dc82a 100644
--- a/templates/protocols/static/route/node.tag/blackhole/node.def
+++ b/templates/protocols/static/route/node.tag/blackhole/node.def
@@ -3,13 +3,13 @@ help: Set to silently discard pkts when matched
delete: touch /tmp/static.$PPID
end: if [ -f "/tmp/static.$PPID" ]; then
- vyatta-vtysh -c "configure terminal" \
+ vtysh -c "configure terminal" \
-c "no ip route $VAR(../@) null0";
rm /tmp/static.$PPID;
else
if [ -n "$VAR(./distance/@)" ]; then
DIST="$VAR(./distance/@)";
fi;
- vyatta-vtysh -c "configure terminal" \
+ vtysh -c "configure terminal" \
-c "ip route $VAR(../@) null0 $DIST";
fi;
diff --git a/templates/protocols/static/route/node.tag/next-hop/node.def b/templates/protocols/static/route/node.tag/next-hop/node.def
index e631df83..4e17fd4c 100644
--- a/templates/protocols/static/route/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route/node.tag/next-hop/node.def
@@ -7,7 +7,7 @@ end: if [[ -f /tmp/static.$PPID ]]
if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \
"$VAR(../@)" "$VAR(@)"
then
- vyatta-vtysh -c "configure terminal" \
+ vtysh -c "configure terminal" \
-c "no ip route $VAR(../@) $VAR(@)"
fi
rm -f /tmp/static.$PPID
@@ -16,6 +16,6 @@ end: if [[ -f /tmp/static.$PPID ]]
then
DIST="$VAR(./distance/@)"
fi
- vyatta-vtysh -c "configure terminal" \
+ vtysh -c "configure terminal" \
-c "ip route $VAR(../@) $VAR(@) $DIST";
fi