diff options
Diffstat (limited to 'templates/protocols/ospf/timers/throttle/spf')
4 files changed, 22 insertions, 0 deletions
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; " |