summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-27 10:00:56 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-27 10:00:56 +0000
commit070db6c5fbc3181cedf12171c89979f38aea85d7 (patch)
treeda598c9c8ab92aaa6e5991ee4dfcaafb0d916a48
parent676661b527d9def7e0c8ea9c5bca0f2a3788081e (diff)
downloadvyatta-cfg-quagga-070db6c5fbc3181cedf12171c89979f38aea85d7.tar.gz
vyatta-cfg-quagga-070db6c5fbc3181cedf12171c89979f38aea85d7.zip
bgp: T3945: Add route-map for afi6 aggregate-address
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl4
-rw-r--r--templates/protocols/bgp/node.tag/address-family/ipv6-unicast/aggregate-address/node.tag/route-map/node.def6
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index faae7126..3e49e1d1 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -67,6 +67,10 @@ my %qcom = (
set => 'router bgp #3 ; address-family ipv6 ; aggregate-address #7 ?summary-only',
del => 'router bgp #3 ; address-family ipv6 ; no aggregate-address #7',
},
+ 'protocols bgp var address-family ipv6-unicast aggregate-address var route-map' => {
+ set => 'router bgp #3 ; address-family ipv6 unicast ; no aggregate-address #7 ; aggregate-address #7 route-map #9',
+ del => 'router bgp #3 ; address-family ipv6 unicast ; no aggregate-address #7 route-map #9 ; aggregate-address #7',
+ },
'protocols bgp var address-family ipv6-unicast network' => {
set => undef,
del => undef,
diff --git a/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/aggregate-address/node.tag/route-map/node.def b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/aggregate-address/node.tag/route-map/node.def
new file mode 100644
index 00000000..3d61955a
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/address-family/ipv6-unicast/aggregate-address/node.tag/route-map/node.def
@@ -0,0 +1,6 @@
+type: txt
+help: Route map to filter redistributed routes
+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"