diff options
author | bbs2web <bbs2web@hotmail.com> | 2020-01-22 14:11:17 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2020-01-22 14:57:32 +0100 |
commit | 9ffa58777b229055b44f11420eb1b8dd080350c8 (patch) | |
tree | ea0c15f4c9b5c72a453d2f3bf5f552b7d08c982d | |
parent | f3f1a1242a67b6cadbb5c04c54345e6b88e4096e (diff) | |
download | vyatta-cfg-quagga-9ffa58777b229055b44f11420eb1b8dd080350c8.tar.gz vyatta-cfg-quagga-9ffa58777b229055b44f11420eb1b8dd080350c8.zip |
T1983 - Allow setting route-map when BGP routes are submitted to FIB
Signed-off-by: bbs2web <bbs2web@hotmail.com>
Signed-off-by: Daniil Baturin <daniil@baturin.org>
-rw-r--r-- | templates/protocols/bgp/node.tag/route-map/node.def | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.tag/route-map/node.def b/templates/protocols/bgp/node.tag/route-map/node.def new file mode 100644 index 00000000..5c56f1e6 --- /dev/null +++ b/templates/protocols/bgp/node.tag/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 bgp route-map $VAR(@)\" " +delete:expression: "vtysh -c \"configure terminal\" -c \"no ip protocol bgp\" " |