summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/redistribute/rip/node.def
blob: 8db5ad724de6f0b4e343d8482ca62c43bc97f717 (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: "/usr/bin/vtysh -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; \
        /usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
          -c \"redistribute rip \\$COND\"; \
      fi; "