key/value structure

Pavlos Parissis pavlos.parissis at gmail.com
Fri May 8 23:35:33 CEST 2015


Hi,

For each ip_prefix I advertize I need to add a BGP community in the form
of  (ASN,<RouterID>).
I have the following mapping between IPs and RouterIDs

ip_prefix, RouterID
10.10.10.1, 1
10.10.10.2, 2
10.10.10.3, 3
10.10.10.4, 1
10.10.10.5, 2
10.10.10.6, 3
.....

So, inside a function I need to express the following
lookup_community_router_id() {
   return some_kind_of_dict_structure(net.ip)
}

and the use it in a filter/function
filter {
   bgp.community((1111, lookup_community_router_id(net)));
   accept;
}

Is this possible?

Thanks,
Pavlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150508/820c8d67/attachment.html>


More information about the Bird-users mailing list