<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello, may someone explain how to correct use of new aggregation protocol?<br data-mce-bogus="1"></div><div>I need aggregate all routes from table all_bg and push result to all_bg_aggr, for now look like aggregation is not working. May someone explain what I do wrong?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Here is my bird.conf:<br data-mce-bogus="1"></div><div>```log "/var/log/bird.log" { debug, trace, info, remote, warning, error, auth, fatal, bug };<br>router id 192.168.111.10;<br><br># debug protocols all;<br># debug protocols { events, states };<br><br># watchdog warning 5 s;<br># watchdog timeout 30 s;<br><br><br>ipv4 table all_bg_aggr;<br>ipv4 table all_bg;<br><br>filter NEXT_HOP_OVERRIDE {<br> if ( true ) then {<br> gw = 192.168.111.254;<br> accept;<br> }<br> reject;<br>}<br><br><br>protocol device {<br>}<br><br>protocol direct {<br> disabled;<br> ipv4;<br> ipv6;<br>}<br><br>protocol kernel {<br> ipv4 {<br> import none;<br> export none;<br> };<br>}<br><br>protocol static legacy_bg {<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> }; <br> include "/etc/bird/legacy.conf";<br>}<br><br>protocol static custom_bg {<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> };<br> include "/etc/bird/custom.conf";<br>}<br><br>protocol static aws_bg {<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> }; <br> include "/etc/bird/aws.conf";<br>}<br><br>protocol static fastly_bg {<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> }; <br> include "/etc/bird/fastly.conf";<br>}<br><br>protocol static cloudflare_bg {<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> }; <br> include "/etc/bird/cloudflare.conf";<br>}<br><br>protocol static mailru_vk_bg {<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> }; <br> include "/etc/bird/vk-mrg.conf";<br>}<br><br># Get routes from Antifilter.download<br>protocol bgp antifilter_d_bg {<br> local as 64900;<br> neighbor 45.154.73.71 as 65432 external;<br> multihop;<br> hold time 240;<br> graceful restart;<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> export none;<br> };<br>}<br><br># Get routes from Antifilter.network<br>protocol bgp antifilter_n_bg {<br> local as 64900;<br> neighbor 51.75.66.20 as 65444 external;<br> multihop;<br> hold time 240;<br> graceful restart;<br> ipv4 {<br> table all_bg;<br> import filter NEXT_HOP_OVERRIDE;<br> export none;<br> };<br>}<br><br><br># Aggregate routes<br>protocol aggregator all_bg_aggregator {<br> table all_bg;<br> peer table all_bg_aggr;<br> export all;<br> aggregate on net;<br> merge by {<br> print "Merging all these: ", routes;<br> bgp_med = 0;<br> for route r in routes do {<br> if ! defined(r.bgp_med) then { unset(bgp_med); accept; }<br> print r, " bgp_med: ", r.bgp_med;<br> bgp_med = bgp_med + r.bgp_med;<br> bgp_community = bgp_community.add(r.bgp_community);<br> }<br> accept;<br> };<br>}<br><br><br># Export routes to Cisco C8000v<br>protocol bgp rr_bg {<br> local as 64900;<br> neighbor 192.168.111.1 as 65137;<br> graceful restart;<br> ipv4 {<br> table all_bg_aggr;<br> import none;<br> export all;<br> };<br>}<br>```<br data-mce-bogus="1"></div></div></body></html>