summaryrefslogtreecommitdiff
path: root/templates/protocols/ospfv3/redistribute/connected
diff options
context:
space:
mode:
authorJon Andersson <Jon.Andersson@no.thalesgroup.com>2010-06-11 10:51:31 +0200
committerStig Thormodsrud <stig@vyatta.com>2010-06-14 13:50:37 -0700
commitea31437f30a7f808cbb2bb055f1a6b826c994a4d (patch)
treec0f2e8dc19a589dd51a5baa47f07ed373d3542ed /templates/protocols/ospfv3/redistribute/connected
parent33f2dc497c8edf3bb73c35fbd0296e22b86b3167 (diff)
downloadvyatta-cfg-quagga-ea31437f30a7f808cbb2bb055f1a6b826c994a4d.tar.gz
vyatta-cfg-quagga-ea31437f30a7f808cbb2bb055f1a6b826c994a4d.zip
Added route-map support in ospfv3-redistribute
Diffstat (limited to 'templates/protocols/ospfv3/redistribute/connected')
-rw-r--r--templates/protocols/ospfv3/redistribute/connected/node.def13
-rw-r--r--templates/protocols/ospfv3/redistribute/connected/route-map/node.def3
2 files changed, 16 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..31ec403e
--- /dev/null
+++ b/templates/protocols/ospfv3/redistribute/connected/node.def
@@ -0,0 +1,13 @@
+help: Set to redistribute connected routes
+
+end: vyatta-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;
+ vyatta-vtysh -c "configure terminal" \
+ -c "router ospf6" \
+ -c "redistribute connected $COND";
+ fi;
diff --git a/templates/protocols/ospfv3/redistribute/connected/route-map/node.def b/templates/protocols/ospfv3/redistribute/connected/route-map/node.def
new file mode 100644
index 00000000..3f570311
--- /dev/null
+++ b/templates/protocols/ospfv3/redistribute/connected/route-map/node.def
@@ -0,0 +1,3 @@
+type: txt
+help: Set route map reference
+commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"