summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-30 15:28:35 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-30 15:28:35 -0700
commitbb626b99b59133577e333cd2b5553cdc621c4ad7 (patch)
tree6b4417b20f57b33c3dae8495d764417c6fa55832 /templates/interfaces/loopback
parent88bcee588c999abe4eae6fb12f01a8ca2d929279 (diff)
downloadvyatta-cfg-quagga-bb626b99b59133577e333cd2b5553cdc621c4ad7.tar.gz
vyatta-cfg-quagga-bb626b99b59133577e333cd2b5553cdc621c4ad7.zip
Replace calls to vyatta-vtysh perl script with vyatta-vtysh
No longer need the perl wrapper, the logging and error suppression are now in the command itself. This helps with the speed of route creation with lots of routes.
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/plaintext-password/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/network/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/rip/authentication/plaintext-password/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def4
15 files changed, 30 insertions, 30 deletions
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def
index 88908e83..cfb7842b 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def
@@ -9,12 +9,12 @@ delete:expression: "touch /tmp/ospf-md5.$PPID"
end:expression: "\
if [ -f \"/tmp/ospf-md5.$PPID\" ]; then \
- ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
+ vyatta-vtysh -c \"configure terminal\" \
-c \"interface $VAR(../../../../../@) \" \
-c \"no ip ospf message-digest-key $VAR(@)\"; \
rm /tmp/ospf-md5.$PPID; \
else \
- ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
+ vyatta-vtysh -c \"configure terminal\" \
-c \"interface $VAR(../../../../../@) \" \
-c \"ip ospf message-digest-key $VAR(@) md5 $VAR(md5-key/@)\"; \
fi; "
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def
index d81c06b3..85a66781 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def
@@ -1,11 +1,11 @@
help: Set MD5 key id
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+update:expression: "vyatta-vtysh \
-c \"configure terminal\" \
-c \"interface $VAR(../../../../@) \" \
-c \"no ip ospf authentication \" \
-c \"ip ospf authentication message-digest\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+delete:expression: "vyatta-vtysh \
-c \"configure terminal\" \
-c \"interface $VAR(../../../../@) \" \
-c \"no ip ospf authentication \"; "
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/plaintext-password/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/plaintext-password/node.def
index 2b763800..e97a3ec8 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/plaintext-password/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/plaintext-password/node.def
@@ -6,14 +6,14 @@ syntax:expression: exec " \
exit 1 ; \
fi ; "
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+update:expression: "vyatta-vtysh \
-c \"configure terminal\" \
-c \"interface $VAR(../../../../@) \" \
-c \"no ip ospf authentication \" \
-c \"ip ospf authentication \" \
-c \"ip ospf authentication-key $VAR(@) \"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+delete:expression: "vyatta-vtysh \
-c \"configure terminal\" \
-c \"interface $VAR(../../../../@) \" \
-c \"no ip ospf authentication \" \
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def
index e4d5a8a4..3c256074 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/cost/node.def
@@ -1,9 +1,9 @@
type: u32
help: Set interface cost
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Must be between 1-65535"
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf cost $VAR(@) \"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf cost \"; "
comp_help: <1-65535> Cost
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def
index 8003c5c1..4bff0b1f 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/dead-interval/node.def
@@ -1,9 +1,9 @@
type: u32
help: Set interval after which a neighbor is declared dead
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Must be between 1-65535"
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf dead-interval $VAR(@)\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf dead-interval \"; "
comp_help: <1-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def
index b86cf431..6e743064 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/hello-interval/node.def
@@ -1,8 +1,8 @@
type: u32
help: Set interval between hello packets
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Must be between 1-65535"
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@) \" \
+update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@) \" \
-c \"ip ospf hello-interval $VAR(@)\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@) \" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@) \" \
-c \"no ip ospf hello-interval \"; "
comp_help: <1-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def
index 50452f78..ae2f1153 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/mtu-ignore/node.def
@@ -1,5 +1,5 @@
help: Disable Maximum Transmission Unit (MTU) mismatch detection
-create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+create:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf mtu-ignore\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf mtu-ignore\"; "
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def
index 1296ca18..c7fcc7e7 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/network/node.def
@@ -5,11 +5,11 @@ syntax:expression: $VAR(@) in "non-broadcast"; \
allowed:echo non-broadcast
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+update:expression: "vyatta-vtysh \
-c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf network $VAR(@) \"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+delete:expression: "vyatta-vtysh \
-c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf network \"; "
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def
index ed1a63ab..c19b3f85 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/priority/node.def
@@ -1,8 +1,8 @@
type: u32
help: Set router priority
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "Must be between 0-255"
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf priority $VAR(@)\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf priority \"; "
comp_help: <0-255> Priority
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def
index d6741f94..5dac04e1 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/retransmit-interval/node.def
@@ -1,8 +1,8 @@
type: u32
help: Set interval between retransmitting lost link state advertisements
syntax:expression: $VAR(@) >= 3 && $VAR(@) <= 65535; "Must be between 3-65535"
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf retransmit-interval $VAR(@)\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf retransmit-interval \"; "
comp_help: <3-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def
index d0a5193d..b60ed78f 100644
--- a/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/transmit-delay/node.def
@@ -1,8 +1,8 @@
type: u32
help: Set link state transmit delay
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 65535; "Must be between 1-65535"
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"ip ospf transmit-delay $VAR(@)\"; "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(../../../@)\" \
-c \"no ip ospf transmit-delay \"; "
comp_help: <1-65535> Seconds
diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def
index bc653d00..bcebd5ab 100644
--- a/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def
@@ -6,14 +6,14 @@ syntax:expression: exec " \
exit 1 ; \
fi ; "
-update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+update:expression: "vyatta-vtysh \
-c \"configure terminal\" -c \"interface $VAR(../../../../../@)\" \
-c \"ip rip authentication mode md5\" \
-c \"ip rip authentication key-chain $VAR(../../../../../@)-rip\" \
-c \"key chain $VAR(../../../../../@)-rip\" -c \"key $VAR(../@)\" \
-c \"key-string $VAR(@)\" "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -noerr \
+delete:expression: "vyatta-vtysh --noerror \
-c \"configure terminal\" -c \"interface $VAR(../../../../../@)\" \
-c \"no ip rip authentication mode md5\" \
-c \"no ip rip authentication key-chain $VAR(../../../../../@)-rip\" \
diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/plaintext-password/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/plaintext-password/node.def
index 17a99a94..cdc9e54b 100644
--- a/templates/interfaces/loopback/node.tag/ip/rip/authentication/plaintext-password/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/plaintext-password/node.def
@@ -8,12 +8,12 @@ syntax:expression: exec " \
commit:expression: $VAR(../md5/) == "" ; "md5 password already set"
-update: ${vyatta_sbindir}/vyatta-vtysh.pl \
+update: vyatta-vtysh \
-c "configure terminal" -c "interface $VAR(../../../../@)" \
-c "ip rip authentication mode text" \
-c "ip rip authentication string $VAR(@)"
-delete: ${vyatta_sbindir}/vyatta-vtysh.pl \
+delete: vyatta-vtysh \
-c "configure terminal" -c "interface $VAR(../../../../@)" \
-c "no ip rip authentication mode" \
-c "no ip rip authentication string $VAR(@)"
diff --git a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def
index f8f93cd7..4989b867 100644
--- a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/disable/node.def
@@ -1,10 +1,10 @@
help: Disable split horizon on specified interface
-create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+create:expression: "vyatta-vtysh \
-c \"configure terminal \" \
-c \"interface $VAR(../../../../@) \" \
-c \"no ip rip split-horizon \" "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl \
+delete:expression: "vyatta-vtysh \
-c \"configure terminal \" \
-c \"interface $VAR(../../../../@) \" \
-c \"ip rip split-horizon \" "
diff --git a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def
index 80b8a4a3..17438eac 100644
--- a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def
+++ b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def
@@ -1,8 +1,8 @@
help: Enable split-horizon with poison reverse
-create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
+create:expression: "vyatta-vtysh -c \"configure terminal\" \
-c \"interface $VAR(../../../../@)\" \
-c \"ip rip split-horizon poisoned-reverse\" "
-delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
+delete:expression: "vyatta-vtysh -c \"configure terminal\" \
-c \"interface $VAR(../../../../@)\" \
-c \"no ip rip split-horizon\" -c \"ip rip split-horizon\" "