summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBenjamin M. Hughes <bmhughes@bmhughes.co.uk>2020-08-13 15:24:58 +0100
committerBenjamin M. Hughes <bmhughes@bmhughes.co.uk>2020-08-13 15:29:01 +0100
commit2c67f26ffa4c2e827fe48efbf7f90cb975f4af44 (patch)
treeb49def1b511301f40f0721974f33cd17513f8f18 /templates
parent5970bdca312fa857aa0b7dcc2cc202723b24e894 (diff)
downloadvyatta-cfg-quagga-2c67f26ffa4c2e827fe48efbf7f90cb975f4af44.tar.gz
vyatta-cfg-quagga-2c67f26ffa4c2e827fe48efbf7f90cb975f4af44.zip
T2790: Add ip protocol route-map for OSPFv3 and ripng
Diffstat (limited to 'templates')
-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\" "