Hi Matthias We are using the following approach: ip as-path access-list limit-to-100 deny ^([0-9]+ ){99,}[0-9]+$
Cheers Andreas On Fri, Sep 08, 2017 at 04:52:47PM +0200, Matthias Ferdinand wrote: > Hi, > > Cisco IOS seems to have a nice configuration setting > > bgp maxas-path <num> > > https://www.cisco.com/c/en/us/td/docs/ios/12_2/iproute/command/reference/fiprrp_r/1rfbgp1.html#wp1254976 > > which apparently quagga does not have. > > So I set up an as-path access-list like so: > > ip as-path access-list maxas-limit75 deny > _[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+_[0-9]+ > ip as-path access-list maxas-limit75 permit . > > which seems to work, but is not nice to read. I tried to use counting > regexes with braces ([0-9]{0,75}) without success. Is there a more > elegant way to do it than above? > > Regards > Matthias Ferdinand -- andreas jaggi lead engineer network services open systems ag raeffelstrasse 29 ch-8045 zurich t: +41 58 100 10 10 f: +41 58 100 10 11 a...@open.ch http://www.open.ch _______________________________________________ Quagga-users mailing list Quagga-users@lists.quagga.net https://lists.quagga.net/mailman/listinfo/quagga-users