BGP neighbor as variable for filters or function

Ondrej Zajicek santiago at crfreenet.org
Thu Dec 22 11:27:02 CET 2011


On Mon, Dec 19, 2011 at 04:58:01PM +0100, Stefan Jakob wrote:
> 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?

I think there is not. Usually this is handled by an addition
argument to the function.

-- 
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20111222/2a049bd7/attachment-0001.asc>


More information about the Bird-users mailing list