route attribute scope

Frederik Kriewitz frederik at kriewitz.eu
Fri Jun 20 13:45:47 CEST 2014


Hello,

we noticed something which feels like an inconsistency/bug to us.

So far we assumed that route attributes can be set in any filter of
any protocol.
But it seems like OSPF attributes can be set only in export filters of
OSPF protocols.

Here's an example configuration (Tested with BIRD 1.4.3):
protocol static s_attr_test {
        import filter {
                bgp_community.add((65535,65281)); # working
                bgp_local_pref = 99; # working
                ospf_metric1=11; # not working
                ospf_metric2=12; # not working
                ospf_tag=123; # not working
                accept;
        };
        route 10.50.0.0/30 via "lo";
}

This is the result:
# birdc show route all protocol s_attr_test
BIRD 1.4.3 ready.
10.50.0.0/30       dev lo [s_attr_test 2014-06-20 12:35:25] * (200)
        Type: static-device unicast univ
        BGP.local_pref: 99
        BGP.community: (65535,65281)

As you can see the BGP attributes have been added correctly but the
OSPF attributes are missing.
Before we look further into this we would like to know if this is the
intended behavior.

Best Regards,
Frederik Kriewitz



More information about the Bird-users mailing list