summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-11-28 17:16:33 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-11-28 17:16:33 -0800
commitbf8fe41f2d976e8cd10f258110fe7ec98e39fee4 (patch)
tree12a4c10b99abbcc285b26fa4e8e7aee674c12faa /templates/protocols/static/route
parent24c52ea6739354409a493fefef2b01f068b3073c (diff)
downloadvyatta-cfg-quagga-bf8fe41f2d976e8cd10f258110fe7ec98e39fee4.tar.gz
vyatta-cfg-quagga-bf8fe41f2d976e8cd10f258110fe7ec98e39fee4.zip
Change metric to distance in static routes.
Diffstat (limited to 'templates/protocols/static/route')
-rw-r--r--templates/protocols/static/route/node.tag/blackhole/distance/node.def (renamed from templates/protocols/static/route/node.tag/blackhole/metric/node.def)0
-rw-r--r--templates/protocols/static/route/node.tag/blackhole/node.def6
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.def6
-rw-r--r--templates/protocols/static/route/node.tag/next-hop/node.tag/distance/node.def (renamed from templates/protocols/static/route/node.tag/next-hop/node.tag/metric/node.def)0
4 files changed, 6 insertions, 6 deletions
diff --git a/templates/protocols/static/route/node.tag/blackhole/metric/node.def b/templates/protocols/static/route/node.tag/blackhole/distance/node.def
index 938aea1a..938aea1a 100644
--- a/templates/protocols/static/route/node.tag/blackhole/metric/node.def
+++ b/templates/protocols/static/route/node.tag/blackhole/distance/node.def
diff --git a/templates/protocols/static/route/node.tag/blackhole/node.def b/templates/protocols/static/route/node.tag/blackhole/node.def
index aa54eceb..c1a8cc2c 100644
--- a/templates/protocols/static/route/node.tag/blackhole/node.def
+++ b/templates/protocols/static/route/node.tag/blackhole/node.def
@@ -4,8 +4,8 @@ end: "if [ -f \"/tmp/static.\\$PPID\" ]; then \
/usr/bin/vtysh -c \"configure terminal\" -c \"no ip route $(../@) null0\" ; \
rm /tmp/static.\\$PPID; \
else \
- if [ -n \"$(./metric/@)\" ]; then \
- MET=\"$(./metric/@)\"; \
+ if [ -n \"$(./distance/@)\" ]; then \
+ DIST=\"$(./distance/@)\"; \
fi; \
- /usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) null0 \\$MET \" ; \
+ /usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) 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 46625591..6d9288cf 100644
--- a/templates/protocols/static/route/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route/node.tag/next-hop/node.def
@@ -6,8 +6,8 @@ end: "if [ -f \"/tmp/static.\\$PPID\" ]; then \
/usr/bin/vtysh -c \"configure terminal\" -c \"no ip route $(../@) $(@)\" ; \
rm /tmp/static.\\$PPID; \
else \
- if [ -n \"$(./metric/@)\" ]; then \
- MET=\"$(./metric/@)\"; \
+ if [ -n \"$(./distance/@)\" ]; then \
+ DIST=\"$(./distance/@)\"; \
fi; \
- /usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) $(@) \\$MET \" ; \
+ /usr/bin/vtysh -c \"configure terminal\" -c \"ip route $(../@) $(@) \\$DIST \" ; \
fi; "
diff --git a/templates/protocols/static/route/node.tag/next-hop/node.tag/metric/node.def b/templates/protocols/static/route/node.tag/next-hop/node.tag/distance/node.def
index 938aea1a..938aea1a 100644
--- a/templates/protocols/static/route/node.tag/next-hop/node.tag/metric/node.def
+++ b/templates/protocols/static/route/node.tag/next-hop/node.tag/distance/node.def