summaryrefslogtreecommitdiff
path: root/templates/protocols/rip/network-distance/node.def
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2020-06-22 23:04:30 +0300
committerGitHub <noreply@github.com>2020-06-22 22:04:30 +0200
commitf45c90d3bd80702728bed65355a8b06c3ea2c15a (patch)
tree36f42e2aa9a9901d2162fddacd358b2092b0531d /templates/protocols/rip/network-distance/node.def
parentd27fa6b34ed3e9325d6ae8e4aed6acc14d899562 (diff)
downloadvyatta-cfg-quagga-f45c90d3bd80702728bed65355a8b06c3ea2c15a.tar.gz
vyatta-cfg-quagga-f45c90d3bd80702728bed65355a8b06c3ea2c15a.zip
rip: T2547: migrate to vyos-1x
Diffstat (limited to 'templates/protocols/rip/network-distance/node.def')
-rw-r--r--templates/protocols/rip/network-distance/node.def18
1 files changed, 0 insertions, 18 deletions
diff --git a/templates/protocols/rip/network-distance/node.def b/templates/protocols/rip/network-distance/node.def
deleted file mode 100644
index 67d50ab7..00000000
--- a/templates/protocols/rip/network-distance/node.def
+++ /dev/null
@@ -1,18 +0,0 @@
-tag:
-type: ipv4net
-help: Source network
-syntax:expression: exec "ipaddrcheck --verbose --is-ipv4-net $VAR(@)"
-commit:expression: $VAR(./distance/) != ""; "Must specify distance for network $VAR(@)"
-delete:expression: "touch /tmp/rip-dist.$PPID"
-end:expression: "if [ -n \"$VAR(./access-list/@)\" ]; then \
- ACL=\"$VAR(./access-list/@)\"; \
- fi; \
- if [ -f \"/tmp/rip-dist.$PPID\" ]; then \
- dist=$(cat /tmp/rip-network-distance.$PPID); \
- vtysh -c \"configure terminal\" -c \"router rip\" \
- -c \"no distance $dist $VAR(@) $ACL \" ;
- rm -f \"/tmp/rip-dist.$PPID\";
- else \
- vtysh -c \"configure terminal\" -c \"router rip\" \
- -c \"distance $VAR(./distance/@) $VAR(@) $ACL \" ;
- fi; "