On Mon, Dec 03, 2018 at 12:14:13PM +0100, Claudio Jeker wrote:
> There is a trivial optimization that bgpd can do when loading the filter
> ruleset. If the rule is the same as the previous rule than the filterset
> can be merged.  e.g.
> 
>     match from ebgp set community delete $myAS:*
>     match from ebgp set community $myAS:15
>     match from ebgp set med 100
> 
> Will be optimized into:
> 
>     match from ebgp set { metric 100 community delete $myAS:* community 
> $myAS:15 }
> 
> The following diff is doing this and saves around 5% of the rules in
> arouteserver configs and probably similar amount in other peoples config.

OK job@

Reply via email to