summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-23 13:42:21 +0200
committerGitHub <noreply@github.com>2020-08-23 13:42:21 +0200
commit46b69cbe116729be8ec8ef6a22cbcca73011b6e3 (patch)
treeb49def1b511301f40f0721974f33cd17513f8f18
parent5970bdca312fa857aa0b7dcc2cc202723b24e894 (diff)
parent2c67f26ffa4c2e827fe48efbf7f90cb975f4af44 (diff)
downloadvyatta-cfg-quagga-46b69cbe116729be8ec8ef6a22cbcca73011b6e3.tar.gz
vyatta-cfg-quagga-46b69cbe116729be8ec8ef6a22cbcca73011b6e3.zip
Merge pull request #54 from bmhughes/add-route-map-ospfv3-ripng
T2790: Add ip protocol route-map for OSPFv3 and ripng
-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\" "