summaryrefslogtreecommitdiff
path: root/templates/protocols/ospfv3/redistribute/connected/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-01 12:03:56 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-01 12:03:56 -0700
commit11e3c9aa29c64e6f66239f6c3fdf414004f71ea7 (patch)
tree9637ce1430a164ad636eac7e587c3294ab3bf7a2 /templates/protocols/ospfv3/redistribute/connected/node.def
parentd1627b367e30988d26b7e393600149750534aaf6 (diff)
parented9ffaed671f21e9e6e32e49d3fb0a491cf46804 (diff)
downloadvyatta-cfg-quagga-11e3c9aa29c64e6f66239f6c3fdf414004f71ea7.tar.gz
vyatta-cfg-quagga-11e3c9aa29c64e6f66239f6c3fdf414004f71ea7.zip
Merge branch 'larkspur' of suva.vyatta.com:/git/vyatta-cfg-quagga into larkspur
Diffstat (limited to 'templates/protocols/ospfv3/redistribute/connected/node.def')
-rw-r--r--templates/protocols/ospfv3/redistribute/connected/node.def13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/protocols/ospfv3/redistribute/connected/node.def b/templates/protocols/ospfv3/redistribute/connected/node.def
new file mode 100644
index 00000000..ee7cd585
--- /dev/null
+++ b/templates/protocols/ospfv3/redistribute/connected/node.def
@@ -0,0 +1,13 @@
+help: Set to redistribute connected routes
+
+end: vtysh -c "configure terminal" \
+ -c "router ospf6" \
+ -c "no redistribute connected";
+ if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then
+ if [ -n "$VAR(./route-map/@)" ]; then
+ COND="route-map $VAR(./route-map/@)";
+ fi;
+ vtysh -c "configure terminal" \
+ -c "router ospf6" \
+ -c "redistribute connected $COND";
+ fi;