summaryrefslogtreecommitdiff
path: root/templates/protocols/rip/redistribute/static/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/rip/redistribute/static/node.def')
-rw-r--r--templates/protocols/rip/redistribute/static/node.def16
1 files changed, 0 insertions, 16 deletions
diff --git a/templates/protocols/rip/redistribute/static/node.def b/templates/protocols/rip/redistribute/static/node.def
deleted file mode 100644
index 8ce4a0b0..00000000
--- a/templates/protocols/rip/redistribute/static/node.def
+++ /dev/null
@@ -1,16 +0,0 @@
-help: Redistribute static routes
-delete:expression: "touch /tmp/rip-redist-static.$PPID"
-end:expression: "vtysh -c \"configure terminal\" -c \"router rip\" \
- -c \"no redistribute static \"; \
- if [ -f \"/tmp/rip-redist-static.$PPID\" ]; then \
- rm -rf /tmp/rip-redist-static.$PPID; \
- else \
- if [ -n \"$VAR(./metric/@)\" ]; then \
- COND=\"metric $VAR(./metric/@)\";
- fi; \
- if [ -n \"$VAR(./route-map/@)\" ]; then \
- COND=\"$COND route-map $VAR(./route-map/@)\"; \
- fi; \
- vtysh -c \"configure terminal\" -c \"router rip\" \
- -c \"redistribute static $COND\"; \
- fi; "