diff options
Diffstat (limited to 'templates/protocols/ospf/default-information/originate/node.def')
-rw-r--r-- | templates/protocols/ospf/default-information/originate/node.def | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/templates/protocols/ospf/default-information/originate/node.def b/templates/protocols/ospf/default-information/originate/node.def index 5772bdcb..d0ecb7b2 100644 --- a/templates/protocols/ospf/default-information/originate/node.def +++ b/templates/protocols/ospf/default-information/originate/node.def @@ -1,21 +1,21 @@ -help: "Distribute a default route" -delete: "touch /tmp/ospf-default-info.\\$PPID" -end: "if [ -f \"/tmp/ospf-default-info.\\$PPID\" ]; then \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ +help: Distribute a default route +delete:expression: "touch /tmp/ospf-default-info.$PPID" +end:expression: "if [ -f \"/tmp/ospf-default-info.$PPID\" ]; then \ + ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ -c \"no default-information originate \"; \ else \ - if [ -n \"$(./always/@)\" ]; then \ - PARM=\"always\"; \ + if [ -n \"$VAR(./always/@)\" ]; then \ + PARM=\"always\"; \ fi; \ - if [ -n \"$(./metric/@)\" ]; then \ - PARM=\"\\$PARM metric $(./metric/@)\"; \ + if [ -n \"$VAR(./metric/@)\" ]; then \ + PARM=\"$PARM metric $VAR(./metric/@)\"; \ fi; \ - if [ -n \"$(./metric-type/@)\" ]; then \ - PARM=\"\\$PARM metric-type $(./metric-type/@)\"; \ + if [ -n \"$VAR(./metric-type/@)\" ]; then \ + PARM=\"$PARM metric-type $VAR(./metric-type/@)\"; \ fi; \ - if [ -n \"$(./route-map/@)\" ]; then \ - PARM=\"\\$PARM route-map $(./route-map/@)\"; \ + if [ -n \"$VAR(./route-map/@)\" ]; then \ + PARM=\"$PARM route-map $VAR(./route-map/@)\"; \ fi; \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ - -c \"default-information originate \\$PARM\"; \ + ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ + -c \"default-information originate $PARM\"; \ fi; " |