summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/timers
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-11-13 20:45:58 -0800
committerStig Thormodsrud <stig@uffda.(none)>2007-11-13 20:45:58 -0800
commit1a9535e68042f67087cd400523dc42103292c2fe (patch)
treea3650a1c5a90def61a7b1e49ed830727d757cbcb /templates/protocols/ospf/timers
parent34441a9917ce16db0e48fc8d44ecd0ee4debaa34 (diff)
downloadvyatta-cfg-quagga-1a9535e68042f67087cd400523dc42103292c2fe.tar.gz
vyatta-cfg-quagga-1a9535e68042f67087cd400523dc42103292c2fe.zip
Add yet more OSPF configuration.
Diffstat (limited to 'templates/protocols/ospf/timers')
-rw-r--r--templates/protocols/ospf/timers/node.def1
-rw-r--r--templates/protocols/ospf/timers/throttle/node.def1
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/delay/node.def4
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def4
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def4
-rw-r--r--templates/protocols/ospf/timers/throttle/spf/node.def10
6 files changed, 24 insertions, 0 deletions
diff --git a/templates/protocols/ospf/timers/node.def b/templates/protocols/ospf/timers/node.def
new file mode 100644
index 00000000..d81f1b41
--- /dev/null
+++ b/templates/protocols/ospf/timers/node.def
@@ -0,0 +1 @@
+help: "Adjust routing timers"
diff --git a/templates/protocols/ospf/timers/throttle/node.def b/templates/protocols/ospf/timers/throttle/node.def
new file mode 100644
index 00000000..adac0fcb
--- /dev/null
+++ b/templates/protocols/ospf/timers/throttle/node.def
@@ -0,0 +1 @@
+help: "Throttling adaptive timers"
diff --git a/templates/protocols/ospf/timers/throttle/spf/delay/node.def b/templates/protocols/ospf/timers/throttle/spf/delay/node.def
new file mode 100644
index 00000000..28d24cee
--- /dev/null
+++ b/templates/protocols/ospf/timers/throttle/spf/delay/node.def
@@ -0,0 +1,4 @@
+type: u32
+help: "Delay (msec) from first change received till SPF calculation"
+default: 200
+syntax: $(@) >= 0 && $(@) <= 600000; "must be between 0-600000"
diff --git a/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def b/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def
new file mode 100644
index 00000000..a52b9b09
--- /dev/null
+++ b/templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def
@@ -0,0 +1,4 @@
+type: u32
+help: "Initial hold time(msec) between consecutive SPF calculations"
+default: 1000
+syntax: $(@) >= 0 && $(@) <= 600000; "must be between 0-600000"
diff --git a/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def b/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def
new file mode 100644
index 00000000..fd5d6332
--- /dev/null
+++ b/templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def
@@ -0,0 +1,4 @@
+type: u32
+help: "Maximum hold time (msec)"
+default: 10000
+syntax: $(@) >= 0 && $(@) <= 600000; "must be between 0-600000"
diff --git a/templates/protocols/ospf/timers/throttle/spf/node.def b/templates/protocols/ospf/timers/throttle/spf/node.def
new file mode 100644
index 00000000..54e39d0e
--- /dev/null
+++ b/templates/protocols/ospf/timers/throttle/spf/node.def
@@ -0,0 +1,10 @@
+help: "OSPF SPF timers"
+delete: "touch /tmp/ospf-timer.\\$PPID"
+end: "if [ -f \"/tmp/ospf-timer.\\$PPID\" ]; then \
+ /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no timers throttle spf\"; \
+ rm /tmp/ospf-timer.\\$PPID; \
+ else \
+ /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"timers throttle spf $(delay/@) $(initial-holdtime/@) $(max-holdtime/@)\"; \
+ fi; "