summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/timers
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/ospf/timers')
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/delay/node.def2
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def2
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def2
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/node.def18
4 files changed, 17 insertions, 7 deletions
diff --git a/templates/protocols/ospf/timers/throttle/spf/delay/node.def b/templates/protocols/ospf/timers/throttle/spf/delay/node.def
index cd7f8e1e..68bb270f 100644
--- a/templates/protocols/ospf/timers/throttle/spf/delay/node.def
+++ b/templates/protocols/ospf/timers/throttle/spf/delay/node.def
@@ -2,3 +2,5 @@ type: u32
help: Delay (msec) from first change received till SPF calculation
default: 200
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 600000; "must be between 0-600000"
+comp_help: possible competions:
+ <0-600000> Set delay in msec (default 200)
diff --git a/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def b/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def
index 63ce7d98..5054c9bd 100644
--- a/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def
+++ b/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def
@@ -2,3 +2,5 @@ type: u32
help: Initial hold time(msec) between consecutive SPF calculations
default: 1000
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 600000; "must be between 0-600000"
+comp_help: possible completions:
+ <0-600000> Initial hold time in msec (default 1000)
diff --git a/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def b/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def
index 0577b425..b9eb7748 100644
--- a/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def
+++ b/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def
@@ -2,3 +2,5 @@ type: u32
help: Maximum hold time (msec)
default: 10000
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 600000; "must be between 0-600000"
+comp_help: possible completions:
+ <0-600000> Max hold time in msec (default 10000)
diff --git a/templates/protocols/ospf/timers/throttle/spf/node.def b/templates/protocols/ospf/timers/throttle/spf/node.def
index 86bb51b6..d94698ea 100644
--- a/templates/protocols/ospf/timers/throttle/spf/node.def
+++ b/templates/protocols/ospf/timers/throttle/spf/node.def
@@ -1,10 +1,14 @@
help: OSPF SPF timers
delete:expression: "touch /tmp/ospf-timer.$PPID"
-end:expression: "if [ -f \"/tmp/ospf-timer.$PPID\" ]; then \
- ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
- -c \"no timers throttle spf\"; \
- rm /tmp/ospf-timer.$PPID; \
- else \
- ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
- -c \"timers throttle spf $VAR(delay/@) $VAR(initial-holdtime/@) $VAR(max-holdtime/@)\"; \
+end:expression: "\
+ if [ -f \"/tmp/ospf-timer.$PPID\" ]; then \
+ ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
+ -c \"router ospf\" \
+ -c \"no timers throttle spf\"; \
+ rm /tmp/ospf-timer.$PPID; \
+ else \
+ ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
+ -c \"router ospf\" \
+ -c \"timers throttle spf $VAR(delay/@) \
+ $VAR(initial-holdtime/@) $VAR(max-holdtime/@)\"; \
fi; "