diff options
-rw-r--r-- | templates/protocols/ospf/route-map/node.def | 9 |
1 files changed, 5 insertions, 4 deletions
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\" " |