diff options
author | Daniil Baturin <daniil@baturin.org> | 2016-04-28 19:49:18 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2016-04-28 19:49:18 +0700 |
commit | c309df3e034e2fe93659559d8947077285ccc985 (patch) | |
tree | 30e296a3a447e81578bd7e0e38667fcceeab3455 /templates | |
parent | 67b61011221cf658948c5f0f3157bf73d4d9c6da (diff) | |
parent | 08f4ad3f984a8fcbb7810e4e15449f4daa096571 (diff) | |
download | vyatta-cfg-quagga-c309df3e034e2fe93659559d8947077285ccc985.tar.gz vyatta-cfg-quagga-c309df3e034e2fe93659559d8947077285ccc985.zip |
Merge pull request #8 from mickvav/current
Phabricator's Q26 (T52)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/ospf/route-map/node.def | 8 |
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\" " |