From 2c67f26ffa4c2e827fe48efbf7f90cb975f4af44 Mon Sep 17 00:00:00 2001 From: "Benjamin M. Hughes" Date: Thu, 13 Aug 2020 15:24:58 +0100 Subject: T2790: Add ip protocol route-map for OSPFv3 and ripng --- templates/protocols/ospfv3/route-map/node.def | 8 ++++++++ templates/protocols/ripng/route-map/node.def | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 templates/protocols/ospfv3/route-map/node.def create mode 100644 templates/protocols/ripng/route-map/node.def 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\" " -- cgit v1.2.3