BGP syntax for OR/AND on bgpmask

heisenbug at xpto heisenbug at xpto.eng.br
Tue Aug 28 15:43:47 CEST 2018


Hello,

I'm trying to use logical operators like OR and AND on bgpmask filter,
but I'm not able, Can you please check if the syntax ir wrong or if is
possible to do what I expect to do? The data from output is sanitized.

Doesn't work:
bird> show route where bgp_path ~ [= 65000 65000 (65002||65001) * =]
bird> show route where bgp_path ~ [= 65000 65000 (65002&&65001) * =]

The NLRI for the aspath/network exist:
bird> show route where bgp_path ~ [= 65000 65000 65001 * =]
203.0.113.0/24    via 192.0.2.2 on em2 [bgp_65001 2018-08-24 from
127.0.0.15] * (100/0) [AS65001i]
bird> show route where bgp_path ~ [= 65000 65000 65002 * =]
198.51.100.0/24   via 192.0.2.3 on em2 [bgp_65002 2018-08-22 from
127.0.0.15] * (100/0) [AS65002i]


Thanks in advance.


Best regards.

On 28/08/2018 10:41, heisenbug at xpto wrote:
> Hello,
> 
> I'm trying to use logical operators like OR and AND on bgpmask filter,
> but I'm not able, Can you please check if the syntax ir wrong or if is
> possible to do what I expect to do? The data from output is sanitized.
> 
> Doesn't work:
> bird> show route where bgp_path ~ [= 65000 65000 (65002||65001) * =]
> bird> show route where bgp_path ~ [= 28263 28263 (65002&&65001) * =]
> 
> The NLRI for the aspath/network exist:
> bird> show route where bgp_path ~ [= 65000 65000 65001 * =]
> 203.0.113.0/24    via 192.0.2.2 on em2 [bgp_65001 2018-08-24 from
> 127.0.0.15] * (100/0) [AS65001i]
> bird> show route where bgp_path ~ [= 65000 65000 65002 * =]
> 198.51.100.0/24   via 192.0.2.3 on em2 [bgp_65002 2018-08-22 from
> 127.0.0.15] * (100/0) [AS65002i]
> 
> 
> Thanks in advance.
> 
> 
> Best regards.
> 


More information about the Bird-users mailing list