diff options
author | Mihail Vasilev <mick@corp.linkintel.ru> | 2016-04-25 14:23:21 +0000 |
---|---|---|
committer | UnicronNL <kim.sidney@gmail.com> | 2017-10-22 22:24:49 +0200 |
commit | b025eb784953df9881606bd091b6b1a815c25f1b (patch) | |
tree | c55dac4b9ed3fb98cf6a1197a0dd1f18be905182 /templates | |
parent | 1485e5104ab827d396cbaddc8769e26813ce5582 (diff) | |
download | vyatta-cfg-quagga-b025eb784953df9881606bd091b6b1a815c25f1b.tar.gz vyatta-cfg-quagga-b025eb784953df9881606bd091b6b1a815c25f1b.zip |
Fix.
Diffstat (limited to 'templates')
-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\" " |