summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-10-23 15:50:03 +0200
committerDaniil Baturin <daniil@baturin.org>2017-10-23 15:50:03 +0200
commit90d4b24fdac0f87ea8d2a49eed21d30e90fba8ed (patch)
tree70066477a34989d0e7104b57ce7fdcf7dd6928e2
parentddc07aacee3ad1ce8ab9db4354ff771c55697b24 (diff)
parentb025eb784953df9881606bd091b6b1a815c25f1b (diff)
downloadvyatta-cfg-quagga-90d4b24fdac0f87ea8d2a49eed21d30e90fba8ed.tar.gz
vyatta-cfg-quagga-90d4b24fdac0f87ea8d2a49eed21d30e90fba8ed.zip
Merge branch 'helium' of github.com:vyos/vyatta-cfg-quagga into helium
-rw-r--r--templates/protocols/ospf/route-map/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/protocols/ospf/route-map/node.def b/templates/protocols/ospf/route-map/node.def
new file mode 100644
index 00000000..dfe28c05
--- /dev/null
+++ b/templates/protocols/ospf/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 \"ip protocol ospf route-map $VAR(@)\" "
+delete:expression: "vtysh -c \"configure terminal\" -c \"no ip protocol ospf\" "