From 1a9535e68042f67087cd400523dc42103292c2fe Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 13 Nov 2007 20:45:58 -0800 Subject: Add yet more OSPF configuration. --- templates/protocols/ospf/timers/node.def | 1 + templates/protocols/ospf/timers/throttle/node.def | 1 + templates/protocols/ospf/timers/throttle/spf/delay/node.def | 4 ++++ .../ospf/timers/throttle/spf/initial-holdtime/node.def | 4 ++++ .../protocols/ospf/timers/throttle/spf/max-holdtime/node.def | 4 ++++ templates/protocols/ospf/timers/throttle/spf/node.def | 10 ++++++++++ 6 files changed, 24 insertions(+) create mode 100644 templates/protocols/ospf/timers/node.def create mode 100644 templates/protocols/ospf/timers/throttle/node.def create mode 100644 templates/protocols/ospf/timers/throttle/spf/delay/node.def create mode 100644 templates/protocols/ospf/timers/throttle/spf/initial-holdtime/node.def create mode 100644 templates/protocols/ospf/timers/throttle/spf/max-holdtime/node.def create mode 100644 templates/protocols/ospf/timers/throttle/spf/node.def (limited to 'templates/protocols/ospf/timers') 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; " -- cgit v1.2.3