From 08f4ad3f984a8fcbb7810e4e15449f4daa096571 Mon Sep 17 00:00:00 2001 From: Mihail Vasilev Date: Mon, 25 Apr 2016 14:23:21 +0000 Subject: Fix. --- templates/protocols/ospf/route-map/node.def | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/protocols/ospf/route-map/node.def b/templates/protocols/ospf/route-map/node.def index 114cb80a..dfe28c05 100644 --- a/templates/protocols/ospf/route-map/node.def +++ b/templates/protocols/ospf/route-map/node.def @@ -1,7 +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 \"ip protocol ospf route-map $VAR(@)\" \ -delete:expression: "vtysh -c \"configure terminal\" \ - -c \"no ip protocol ospf\" \ +create:expression: "vtysh -c \"configure terminal\" -c \"ip protocol ospf route-map $VAR(@)\" " +delete:expression: "vtysh -c \"configure terminal\" -c \"no ip protocol ospf\" " -- cgit v1.2.3