diff options
author | bbs2web <bbs2web@hotmail.com> | 2020-01-22 14:11:17 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2020-07-26 18:35:44 +0300 |
commit | c18cffd3ffbc0998198258dce3c179fb77e21eee (patch) | |
tree | 50e0f13d016bae2869e1f99890776534eba78534 | |
parent | 174a705c23d3cd19205a57751cf49be855a3a663 (diff) | |
download | vyatta-cfg-quagga-c18cffd3ffbc0998198258dce3c179fb77e21eee.tar.gz vyatta-cfg-quagga-c18cffd3ffbc0998198258dce3c179fb77e21eee.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\" " |