BGP neighbor as variable for filters or function

Stefan Jakob stefan.jakob at de-cix.net
Mon Dec 19 16:58:01 CET 2011


Hi,

I am looking for a variable like bgp_neighbor_as, which I can use in
functions or filters:

define myas = 65123
if bgp_neighbor_as = myas then bgp_path.prepend(myas);



If I have a look at "show protocol all <protocol>" I see

    Neighbor AS:      65123


So is this neighbor as number available as variable?

Rgds, Stefan




More information about the Bird-users mailing list