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.def14
-rw-r--r--templates/protocols/ospf/distance/ospf/external/node.def3
-rw-r--r--templates/protocols/ospf/distance/ospf/inter-area/node.def3
-rw-r--r--templates/protocols/ospf/distance/ospf/intra-area/node.def3
-rw-r--r--templates/protocols/ospf/distance/ospf/node.def35
5 files changed, 33 insertions, 25 deletions
diff --git a/templates/protocols/ospf/distance/global/node.def b/templates/protocols/ospf/distance/global/node.def
index 3a86f3de..7b8a45b9 100644
--- a/templates/protocols/ospf/distance/global/node.def
+++ b/templates/protocols/ospf/distance/global/node.def
@@ -1,9 +1,11 @@
type: u32
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(@) \"; "
-
-
+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(@) \"; "
+comp_help: possible completions:
+ <1-255> Set administrative distance"
diff --git a/templates/protocols/ospf/distance/ospf/external/node.def b/templates/protocols/ospf/distance/ospf/external/node.def
index 19f3be51..2b827181 100644
--- a/templates/protocols/ospf/distance/ospf/external/node.def
+++ b/templates/protocols/ospf/distance/ospf/external/node.def
@@ -1,4 +1,5 @@
type: u32
help: Define a distance for external routes
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-
+comp_help: possible completions:
+ <1-255> Set distance for external routes
diff --git a/templates/protocols/ospf/distance/ospf/inter-area/node.def b/templates/protocols/ospf/distance/ospf/inter-area/node.def
index 54902c54..0ac254e6 100644
--- a/templates/protocols/ospf/distance/ospf/inter-area/node.def
+++ b/templates/protocols/ospf/distance/ospf/inter-area/node.def
@@ -1,4 +1,5 @@
type: u32
help: Define a distance for inter-area routes
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-
+comp_help: possible completions:
+ <1-255> Set distance for inter-area routes
diff --git a/templates/protocols/ospf/distance/ospf/intra-area/node.def b/templates/protocols/ospf/distance/ospf/intra-area/node.def
index e4f4b5c2..665bf139 100644
--- a/templates/protocols/ospf/distance/ospf/intra-area/node.def
+++ b/templates/protocols/ospf/distance/ospf/intra-area/node.def
@@ -1,4 +1,5 @@
type: u32
help: Define a distance for intra-area routes
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between 1-255"
-
+comp_help: possible completions:
+ <1-255> Set distance for intra-area routes
diff --git a/templates/protocols/ospf/distance/ospf/node.def b/templates/protocols/ospf/distance/ospf/node.def
index f003de8a..f1a7884c 100644
--- a/templates/protocols/ospf/distance/ospf/node.def
+++ b/templates/protocols/ospf/distance/ospf/node.def
@@ -1,19 +1,22 @@
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; \
- else \
- if [ -n \"$VAR(./intra-area/@)\" ]; then \
- PARM=\"intra-area $VAR(./intra-area/@)\"; \
- fi; \
- if [ -n \"$VAR(./inter-area/@)\" ]; then \
- PARM=\"$PARM inter-area $VAR(./inter-area/@)\"; \
- fi; \
- 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\"; \
+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; \
+ else \
+ if [ -n \"$VAR(./intra-area/@)\" ]; then \
+ PARM=\"intra-area $VAR(./intra-area/@)\"; \
+ fi; \
+ if [ -n \"$VAR(./inter-area/@)\" ]; then \
+ PARM=\"$PARM inter-area $VAR(./inter-area/@)\"; \
+ fi; \
+ 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\"; \
fi; "