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