From 5565a0741a4f74a5c7d4210e877a6b9b61eefaad Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 8 Apr 2008 12:06:51 -0700 Subject: Fix 3133: "delete protocols ospf timers throttle spf delay" commit failed --- .../protocols/ospf/timers/throttle/spf/node.def | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'templates') diff --git a/templates/protocols/ospf/timers/throttle/spf/node.def b/templates/protocols/ospf/timers/throttle/spf/node.def index d94698ea..9f68167c 100644 --- a/templates/protocols/ospf/timers/throttle/spf/node.def +++ b/templates/protocols/ospf/timers/throttle/spf/node.def @@ -1,14 +1,12 @@ 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/@)\"; \ - fi; " +delete: touch /tmp/ospf-timer.$PPID +end: 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; -- cgit v1.2.3