print and bgp_large_community
santiago at crfreenet.org
Tue Jan 24 15:13:52 CET 2017
On Tue, Jan 24, 2017 at 02:27:11PM +0100, Robert Sander wrote:
> In a function in a filter like this:
> print bgp_community;
> print bgp_large_community;
> Self defined variables like "lc set test" can be printed with
> print test;
> without issues.
> Wait a minute. If I only get "(lclist )" does that mean the
> community list is empty?
That should be true. Unfortunately filters do not distinguish between no
bgp_community attribute and an empty bgp_community attribute.
> When I have a look at the route from the CLI I get this:
> BIRD 1.6.3 ready.
> 188.8.131.52/21 via 10.25.17.251 on br0.17 [ospf1 23:01:29] * E2 (1000/1000/10000) [184.108.40.206]
> Type: OSPF-E2 unicast univ
> OSPF.metric1: 1000
> OSPF.metric2: 10000
> OSPF.tag: 0x00000000
> OSPF.router_id: 220.127.116.11
> unreachable [static_bgp 23:15:16] (10)
> Type: static unicast univ
> BGP.large_community: (199118, 1, 0)
> The route is in a static protocol on this router and on 18.104.22.168,
> which propagates this via OSPF.
Well i see two routes here, one from ospf1 and one from static_bgp. Don't
you apply the filter just for the first one? That would be true in say
export filter. You could add 'print proto;' to see the protocol source
of the route.
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
More information about the Bird-users