summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/distance
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/ospf/distance')
-rw-r--r--templates/protocols/ospf/distance/global/node.def4
-rw-r--r--templates/protocols/ospf/distance/ospf/node.def4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/protocols/ospf/distance/global/node.def b/templates/protocols/ospf/distance/global/node.def
index 6b45a976..d88a761b 100644
--- a/templates/protocols/ospf/distance/global/node.def
+++ b/templates/protocols/ospf/distance/global/node.def
@@ -1,9 +1,9 @@
type: u32
help: "OSPF administrative distance"
syntax: $(@) >= 1 && $(@) <= 255; "Must be between 1-255"
-update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
-c \"distance $(@) \"; "
-delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+delete: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
-c \"no distance $(@) \"; "
diff --git a/templates/protocols/ospf/distance/ospf/node.def b/templates/protocols/ospf/distance/ospf/node.def
index cd64dd88..fa49eaa1 100644
--- a/templates/protocols/ospf/distance/ospf/node.def
+++ b/templates/protocols/ospf/distance/ospf/node.def
@@ -1,7 +1,7 @@
help: "OSPF administrative distance"
delete: "touch /tmp/ospf-distance.\\$PPID"
end: "if [ -f \"/tmp/ospf-distance.\\$PPID\" ]; then \
- /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
-c \"no distance ospf\"; \
rm /tmp/ospf-distance.\\$PPID; \
else \
@@ -14,6 +14,6 @@ end: "if [ -f \"/tmp/ospf-distance.\\$PPID\" ]; then \
if [ -n \"$(./external/@)\" ]; then \
PARM=\"\\$PARM external $(./external/@)\"; \
fi; \
- /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
-c \"no distance ospf\" -c \"distance ospf \\$PARM\"; \
fi; "