summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/redistribute/bgp/node.def
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-22 23:10:24 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-22 23:10:24 +0100
commit73a6551d2e65c1157f7e86e1912b759946c6e40d (patch)
tree91275e77f45c23afda283a1a5aeb5f34e8c21a65 /templates/protocols/ospf/redistribute/bgp/node.def
parent1f7f2d9cc202f0c7abdde014868cd113a9834543 (diff)
downloadvyatta-cfg-quagga-73a6551d2e65c1157f7e86e1912b759946c6e40d.tar.gz
vyatta-cfg-quagga-73a6551d2e65c1157f7e86e1912b759946c6e40d.zip
T3236: migrate ospf to vyos-1x
Diffstat (limited to 'templates/protocols/ospf/redistribute/bgp/node.def')
-rw-r--r--templates/protocols/ospf/redistribute/bgp/node.def21
1 files changed, 0 insertions, 21 deletions
diff --git a/templates/protocols/ospf/redistribute/bgp/node.def b/templates/protocols/ospf/redistribute/bgp/node.def
deleted file mode 100644
index 3630705c..00000000
--- a/templates/protocols/ospf/redistribute/bgp/node.def
+++ /dev/null
@@ -1,21 +0,0 @@
-help: Redistribute BGP routes
-delete:expression: "touch /tmp/ospf-redist-bgp.$PPID"
-end: vtysh -c "configure terminal" \
- -c "router ospf" \
- -c "no redistribute bgp";
- if [ -f "/tmp/ospf-redist-bgp.$PPID" ]; then
- rm -f /tmp/ospf-redist-bgp.$PPID;
- else
- if [ -n "$VAR(./metric/@)" ]; then
- COND="metric $VAR(./metric/@)";
- fi;
- if [ -n "$VAR(./metric-type/@)" ]; then
- COND="$COND metric-type $VAR(./metric-type/@)";
- fi;
- if [ -n "$VAR(./route-map/@)" ]; then
- COND="$COND route-map $VAR(./route-map/@)";
- fi;
- vtysh -c "configure terminal" \
- -c "router ospf" \
- -c "redistribute bgp $COND";
- fi;