summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/protocols/ospfv3/route-map/node.def8
-rw-r--r--templates/protocols/ripng/route-map/node.def8
2 files changed, 16 insertions, 0 deletions
diff --git a/templates/protocols/ospfv3/route-map/node.def b/templates/protocols/ospfv3/route-map/node.def
new file mode 100644
index 00000000..ce84d55a
--- /dev/null
+++ b/templates/protocols/ospfv3/route-map/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: Filter routes installed in local route map
+allowed: local -a params
+ params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy route-map )
+ echo -n ${params[@]##*/}
+commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
+create:expression: "vtysh -c \"configure terminal\" -c \"ipv6 protocol ospf6 route-map $VAR(@)\" "
+delete:expression: "vtysh -c \"configure terminal\" -c \"no ipv6 protocol ospf6\" "
diff --git a/templates/protocols/ripng/route-map/node.def b/templates/protocols/ripng/route-map/node.def
new file mode 100644
index 00000000..7ea923f3
--- /dev/null
+++ b/templates/protocols/ripng/route-map/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: Filter routes installed in local route map
+allowed: local -a params
+ params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy route-map )
+ echo -n ${params[@]##*/}
+commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist"
+create:expression: "vtysh -c \"configure terminal\" -c \"ipv6 protocol ripng route-map $VAR(@)\" "
+delete:expression: "vtysh -c \"configure terminal\" -c \"no ipv6 protocol ripng\" "