summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/redistribute/rip/node.def
blob: fdf4ea4ab2448ff21a991c865bcbaf17c43d3bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
help: "Redistribute RIP routes"
delete: "touch /tmp/ospf-redist-rip.\\$PPID" 
end: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
        -c \"no redistribute rip \"; \
      if [ -f \"/tmp/ospf-redist-rip.\\$PPID\" ]; then \
        rm -rf /tmp/ospf-redist-rip.\\$PPID; \
      else \
        if [ -n \"$(./metric/@)\" ]; then \
          COND=\"metric $(./metric/@)\";
        fi; \
        if [ -n \"$(./route-map/@)\" ]; then \
          COND=\"\\$COND route-map $(./route-map/@)\"; \
        fi; \
        \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \
          -c \"redistribute rip \\$COND\"; \
      fi; "