Skipping collection of BGP RIB routes on Junos
These instructions are obsolete.
On Juniper Junos, it may be advantageous in certain circumstances to skip BGP route table collection to minimize collection times.
The value for the parameter juniper_bgp_routes_skip_threshold (which is only applicable on Juniper Junos) tells us
that if there are more than N BGP routes on a device that is not configured with BMP collection, we should skip BGP
collection and only collect IGP route table information. (value 0 means don't skip)
If there are less than the configured number of BGP RIB routes, in addition to IGP commands, collect all BGP commands by
issuing show route protocol bgp and save the results to BGP_IPv4_ROUTE/BGP_IPv6_ROUTE files.
If always_collect_subnets is specified and is not empty and we have above the specified threshold routes, we should
collect BGP routes only for those subnets (issuing show route protocol bgp matching SUBNET for every specified subnet)
and save the result in BGP_IPv4_ROUTE/BGP_IPv6_ROUTE.
Here is an example from the data sourcesfile:
{
sources: [
..
]
"juniper_bgp_routes_skip_threshold": int
"always_collect_subnets": [
list-of-subnets
]
}