summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/distance
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:58:38 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:58:38 -0800
commitcd50a751d1480424cdf103fd748b514330029c24 (patch)
treef70096ded03ce07e56f42c0660c2cf97d63ba83b /templates/protocols/ospf/distance
parentc51dae6826ea505169fca5b0cb0a580bf99c18cf (diff)
downloadvyatta-cfg-quagga-cd50a751d1480424cdf103fd748b514330029c24.tar.gz
vyatta-cfg-quagga-cd50a751d1480424cdf103fd748b514330029c24.zip
convert templates to new syntax
Diffstat (limited to 'templates/protocols/ospf/distance')
-rw-r--r--templates/protocols/ospf/distance/global/node.def12
-rw-r--r--templates/protocols/ospf/distance/node.def2
-rw-r--r--templates/protocols/ospf/distance/ospf/external/node.def4
-rw-r--r--templates/protocols/ospf/distance/ospf/inter-area/node.def4
-rw-r--r--templates/protocols/ospf/distance/ospf/intra-area/node.def4
-rw-r--r--templates/protocols/ospf/distance/ospf/node.def26
6 files changed, 26 insertions, 26 deletions
diff --git a/templates/protocols/ospf/distance/global/node.def b/templates/protocols/ospf/distance/global/node.def
index d88a761b..3a86f3de 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: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
- -c \"distance $(@) \"; "
-delete: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
- -c \"no distance $(@) \"; "
+help: OSPF administrative distance
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
+update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
+ -c \"distance $VAR(@) \"; "
+delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no distance $VAR(@) \"; "
diff --git a/templates/protocols/ospf/distance/node.def b/templates/protocols/ospf/distance/node.def
index fdc52f32..f86a74d1 100644
--- a/templates/protocols/ospf/distance/node.def
+++ b/templates/protocols/ospf/distance/node.def
@@ -1 +1 @@
-help: "Define an administrative distance"
+help: Define an administrative distance
diff --git a/templates/protocols/ospf/distance/ospf/external/node.def b/templates/protocols/ospf/distance/ospf/external/node.def
index 696e14b7..19f3be51 100644
--- a/templates/protocols/ospf/distance/ospf/external/node.def
+++ b/templates/protocols/ospf/distance/ospf/external/node.def
@@ -1,4 +1,4 @@
type: u32
-help: "Define a distance for external routes"
-syntax: $(@) >= 1 && $(@) <= 255; "Must be between 1-255"
+help: Define a distance for external routes
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
diff --git a/templates/protocols/ospf/distance/ospf/inter-area/node.def b/templates/protocols/ospf/distance/ospf/inter-area/node.def
index 1e2fa5ba..54902c54 100644
--- a/templates/protocols/ospf/distance/ospf/inter-area/node.def
+++ b/templates/protocols/ospf/distance/ospf/inter-area/node.def
@@ -1,4 +1,4 @@
type: u32
-help: "Define a distance for inter-area routes"
-syntax: $(@) >= 1 && $(@) <= 255; "Must be between 1-255"
+help: Define a distance for inter-area routes
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
diff --git a/templates/protocols/ospf/distance/ospf/intra-area/node.def b/templates/protocols/ospf/distance/ospf/intra-area/node.def
index cae2bf0f..e4f4b5c2 100644
--- a/templates/protocols/ospf/distance/ospf/intra-area/node.def
+++ b/templates/protocols/ospf/distance/ospf/intra-area/node.def
@@ -1,4 +1,4 @@
type: u32
-help: "Define a distance for intra-area routes"
-syntax: $(@) >= 1 && $(@) <= 255; "Must be between 1-255"
+help: Define a distance for intra-area routes
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
diff --git a/templates/protocols/ospf/distance/ospf/node.def b/templates/protocols/ospf/distance/ospf/node.def
index fa49eaa1..f003de8a 100644
--- a/templates/protocols/ospf/distance/ospf/node.def
+++ b/templates/protocols/ospf/distance/ospf/node.def
@@ -1,19 +1,19 @@
-help: "OSPF administrative distance"
-delete: "touch /tmp/ospf-distance.\\$PPID"
-end: "if [ -f \"/tmp/ospf-distance.\\$PPID\" ]; then \
- \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
+help: OSPF administrative distance
+delete:expression: "touch /tmp/ospf-distance.$PPID"
+end:expression: "if [ -f \"/tmp/ospf-distance.$PPID\" ]; then \
+ ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
-c \"no distance ospf\"; \
- rm /tmp/ospf-distance.\\$PPID; \
+ rm /tmp/ospf-distance.$PPID; \
else \
- if [ -n \"$(./intra-area/@)\" ]; then \
- PARM=\"intra-area $(./intra-area/@)\"; \
+ if [ -n \"$VAR(./intra-area/@)\" ]; then \
+ PARM=\"intra-area $VAR(./intra-area/@)\"; \
fi; \
- if [ -n \"$(./inter-area/@)\" ]; then \
- PARM=\"\\$PARM inter-area $(./inter-area/@)\"; \
+ if [ -n \"$VAR(./inter-area/@)\" ]; then \
+ PARM=\"$PARM inter-area $VAR(./inter-area/@)\"; \
fi; \
- if [ -n \"$(./external/@)\" ]; then \
- PARM=\"\\$PARM external $(./external/@)\"; \
+ if [ -n \"$VAR(./external/@)\" ]; then \
+ PARM=\"$PARM external $VAR(./external/@)\"; \
fi; \
- \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
- -c \"no distance ospf\" -c \"distance ospf \\$PARM\"; \
+ ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no distance ospf\" -c \"distance ospf $PARM\"; \
fi; "