diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-11-28 17:16:33 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-11-28 17:16:33 -0800 |
commit | bf8fe41f2d976e8cd10f258110fe7ec98e39fee4 (patch) | |
tree | 12a4c10b99abbcc285b26fa4e8e7aee674c12faa | |
parent | 24c52ea6739354409a493fefef2b01f068b3073c (diff) | |
download | vyatta-cfg-quagga-bf8fe41f2d976e8cd10f258110fe7ec98e39fee4.tar.gz vyatta-cfg-quagga-bf8fe41f2d976e8cd10f258110fe7ec98e39fee4.zip |
Change metric to distance in static routes.
8 files changed, 12 insertions, 12 deletions
diff --git a/templates/protocols/static/interface-route/node.tag/blackhole/metric/node.def b/templates/protocols/static/interface-route/node.tag/blackhole/distance/node.def index 938aea1a..938aea1a 100644 --- a/templates/protocols/static/interface-route/node.tag/blackhole/metric/node.def +++ b/templates/protocols/static/interface-route/node.tag/blackhole/distance/node.def diff --git a/templates/protocols/static/interface-route/node.tag/blackhole/node.def b/templates/protocols/static/interface-route/node.tag/blackhole/node.def index aa54eceb..c1a8cc2c 100644 --- a/templates/protocols/static/interface-route/node.tag/blackhole/node.def +++ b/templates/protocols/static/interface-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/interface-route/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def index 5553f119..3c80ccec 100644 --- a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def +++ b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def @@ -11,9 +11,9 @@ 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/interface-route/node.tag/next-hop-interface/node.tag/metric/node.def b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.tag/distance/node.def index 938aea1a..938aea1a 100644 --- a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.tag/metric/node.def +++ b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.tag/distance/node.def 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 |